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 name of the organization.
  • slug (string) – the optional slug for this organization. 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
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
Content-Type: application/json

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

{
  "slug": "ancient-gabelers",
  "name": "Ancient Gabelers",
  "hasAccess": true,
  "isPending": false,
  "dateCreated": "2018-02-20T15:27:31.956Z",
  "isMember": false,
  "id": "3"
}