everydayhero: Developer

Members

Add a Team Member

Authentication types: Registered Application Token or OAuth User Token

Add an existing page to an existing team.

POST https://everydayhero.com/api/v2/teams/:id/members

Payload

individual_page_id : required integer
The id of the page you want to join a team with.

If using Registered Application authentication, any team in the application's campaign can be used. If using OAuth User authentication the affiliated user must own the team.

Example

{
  "individual_page_id": 1
}

Response

{
  "team": {
    "id": 1,
    "uid": 1,
    "name": "Team Example",
    "leader_id": 42,
    "page_ids": [
      42,
      53,
      123
    ]
  }
}

Remove a Team Member (requires authentication)

Remove a member from an existing team, the leader can not be the team leader. The page id must be a member of a campaign you are authenticated with.

DELETE https://everydayhero.com/api/v2/teams/:team_id/members/:page_id

Response

204 no content, for success

404 for invalid team or page