Create a new Team

POST /api/0/organizations/{organization_slug}/teams/

Create a new team bound to an organization. Only the name of the team is needed to create it, the slug can be auto generated.

Path Parameters:
  • organization_slug (string)

    the slug of the organization the team should be created for.

Parameters:
  • name (string)

    the optional name of the team.

  • slug (string)

    the optional slug for this team. If not provided it will be auto generated from the name.

Authentication: required
Method: POST
Path: /api/0/organizations/{organization_slug}/teams/

Example

POST /api/0/organizations/the-interstellar-jurisdiction/teams/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
Content-Type: application/json

{
  "name": "Ancient Gabelers"
}
HTTP/1.1 201 CREATED
Content-Length: 248
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, POST, HEAD, OPTIONS
X-Frame-Options: deny
Content-Type: application/json

{
  "avatar": {
    "avatarType": "letter_avatar", 
    "avatarUuid": null
  }, 
  "dateCreated": "2018-11-06T21:20:08.115Z", 
  "hasAccess": true, 
  "id": "3", 
  "isMember": true, 
  "isPending": false, 
  "memberCount": 1, 
  "name": "Ancient Gabelers", 
  "slug": "ancient-gabelers"
}