Add a Team to a Project

POST /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/{team_id_or_slug}/

Give a team access to a project.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

project_id_or_slug (string)
REQUIRED

The ID or slug of the project the resource belongs to.

team_id_or_slug (string)
REQUIRED

The ID or slug of the team the resource belongs to.

Scopes

<auth_token> requires one of the following scopes:
  • project:admin
  • project:write
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/{team_id_or_slug}/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
{
  "id": "6758470122493650",
  "slug": "The Spoiled Yoghurt",
  "name": "the-spoiled-yoghurt",
  "platform": "javascript",
  "dateCreated": "2023-03-29T15:25:21.344565Z",
  "isBookmarked": false,
  "isMember": true,
  "features": [
    "alert-filters",
    "custom-inbound-filters",
    "data-forwarding",
    "discard-groups",
    "minidump",
    "race-free-group-creation",
    "rate-limits",
    "servicehooks",
    "similarity-indexing",
    "similarity-indexing-v2",
    "similarity-view",
    "similarity-view-v2"
  ],
  "firstEvent": null,
  "firstTransactionEvent": false,
  "access": [
    "member:read",
    "event:read",
    "project:admin",
    "team:write",
    "project:write",
    "team:admin",
    "project:read",
    "org:integrations",
    "org:read",
    "project:releases",
    "team:read",
    "alerts:write",
    "event:admin",
    "event:write",
    "alerts:read"
  ],
  "hasAccess": true,
  "hasMinifiedStackTrace": false,
  "hasCustomMetrics": false,
  "hasMonitors": false,
  "hasProfiles": false,
  "hasReplays": false,
  "hasSessions": false,
  "isInternal": false,
  "isPublic": false,
  "avatar": {
    "avatarType": "letter_avatar",
    "avatarUuid": null
  },
  "color": "#5cbf3f",
  "status": "active",
  "team": {
    "id": "2349234102",
    "name": "Prime Mover",
    "slug": "prime-mover"
  },
  "teams": [
    {
      "id": "2349234102",
      "name": "Prime Mover",
      "slug": "prime-mover"
    },
    {
      "id": "47584447",
      "name": "Powerful Abolitionist",
      "slug": "powerful-abolitionist"
    }
  ]
}