Teams

Get a team list or team details

bash
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams?account_id=ACCOUNT_ID curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID

Returns a list of teams

json
{ "id": 1, "name": "The Avengers", "created_at": "2013-01-11T15:40:35Z", "owner": { "id": 1, "email": "thor@example.org", "name": "Thor" }, "members": [...], "projects": [...], "invitations": [...] }

If the account_id parameter is not supplied when requesting the list of teams, all teams will be returned across all accounts to which the provided AUTH_TOKEN has access.

Create a team

bash
curl -u AUTH_TOKEN: -X POST -H 'Content-type: application/json' -d '{"team":{"name":"My team"}}' https://app.honeybadger.io/v2/teams?account_id=ACCOUNT_ID

You can specify these fields:

Field name Type Description
name string

If the account_id query parameter is not provided, the team will be associated with the first account accessible by the user associated with the AUTH_TOKEN.

Update a team

bash
curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' -d '{"team":{"name":"Updated team name"}}' https://app.honeybadger.io/v2/teams/ID

Delete a team

bash
curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/teams/ID

Get a list of team members or team member details

bash
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID/team_members

Returns all the members or a single team member for the given team:

json
{ "id": 1, "created_at": "2012-12-13T15:00:47Z", "admin": true, "name": "", "email": "westley@honeybadger.io" }

Update a team member

curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' -d '{"team_member":{"admin":true}}' https://app.honeybadger.io/v2/teams/ID/team_members/ID

The list of valid fields is as follows:

Field name Type Description
admin boolean

Delete a team member

bash
curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/teams/ID/team_members/ID

Create a team invitation

bash
curl -u AUTH_TOKEN: -X POST -H 'Content-type: application/json' \ -d '{"team_invitation":{"email":"inigo@honeybadger.io"}}' \ https://app.honeybadger.io/v2/teams/ID/team_invitations

You can specify these fields:

Field name Type Description
email string The invited user's email address.
admin boolean (Optional) Set this to true to make the invited user a team admin.
message string (Optional) The message to be included in the invitation email.

Returns the created team invitation:

json
{ "id": 9, "token": "e62394d2", "email": "inigo@honeybadger.io", "created_by": { "email": "westley@honeybadger.io", "name": "Westley" }, "accepted_by": null, "admin": false, "accepted_at": null, "created_at": "2013-01-08T15:42:16Z", "message": null }

Update a team invitation

bash
curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' \ -d '{"team_invitation":{"admin": true}}' \ https://app.honeybadger.io/v2/teams/ID/team_invitations/ID

You can specify either of these fields:

Field name Type Description
admin boolean Set this to true to make the invited user a team admin.
message string The message to be included in the invitation email.

Get a team invitation list or team invitation details

bash
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID/team_invitations curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID/team_invitations/ID

Returns a list of team invitations or a single team invitation for the given team:

json
{ "id": 9, "token": "e62394d2", "email": "", "created_by": { "email": "westley@honeybadger.io", "name": "Westley" }, "accepted_by": { "email": "inigo@honeybadger.io", "name": "Inigo Montoya" }, "admin": true, "accepted_at": "2013-01-08T15:42:41Z", "created_at": "2013-01-08T15:42:16Z", "message": null }

Delete a team invitation

bash
curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/teams/ID/team_invitations/ID