Create a New Team
POST /api/0/organizations/{organization_id_or_slug}/teams/
Create a new team bound to an organization. Requires at least one of the name
or slug
body params to be set.
Path Parameters
organization_id_or_slug
(string)REQUIREDThe ID or slug of the organization the resource belongs to.
Body Parameters
slug
(string)Uniquely identifies a team and is used for the interface. If not provided, it is automatically generated from the name.
name
(string)[DEPRECATED]
The name for the team. If not provided, it is automatically generated from the slug
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:org:admin
org:write
team:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/teams/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSESCHEMA
Copied{ "id": "5151492858", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2021-06-12T23:38:54.168307Z", "isMember": true, "teamRole": "admin", "flags": { "idp:provisioned": false }, "access": [ "project:write", "member:read", "event:write", "team:admin", "alerts:read", "project:releases", "alerts:write", "org:read", "team:read", "project:admin", "project:read", "org:integrations", "event:read", "event:admin", "team:write" ], "hasAccess": true, "isPending": false, "memberCount": 1, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null } }