Update a Project Environment

PUT /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/{environment}/

Update the visibility for a project environment.

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.

environment (string)
REQUIRED

The name of the environment.

Body Parameters

isHidden (boolean)
REQUIRED

Specify true to make the environment visible or false to make the environment hidden.

Scopes

<auth_token> requires one of the following scopes:
  • project:admin
  • project:write
Copied
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/{environment}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'
RESPONSESCHEMA
Copied
{ "id": "1", "name": "Production", "isHidden": false }