Update an External User

PUT /api/0/organizations/{organization_id_or_slug}/external-users/{external_user_id}/

Update a user in an external provider that is currently linked to a Sentry user.

Path Parameters

organization_id_or_slug (string)
REQUIRED

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

external_user_id (integer)
REQUIRED

The ID of the external user object. This is returned when creating an external user.

Body Parameters

user_id (integer)
REQUIRED

The user ID in Sentry.

external_name (string)
REQUIRED

The associated username for the provider.

provider (string)
REQUIRED

The provider of the external actor.

  • github
  • github_enterprise
  • slack
  • gitlab
  • msteams
  • custom_scm
integration_id (integer)
REQUIRED

The Integration ID.

id (integer)
REQUIRED

The external actor ID.

external_id (string)

The associated user ID for provider.

Scopes

<auth_token> requires one of the following scopes:
  • org:admin
  • org:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/external-users/{external_user_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'
RESPONSESCHEMA
{
  "id": 123,
  "provider": "github",
  "external_name": "@billy",
  "integration_id": 123,
  "user_id": 123
}