Create a Deploy
POST /api/0/organizations/{organization_id_or_slug}/releases/{version}/deploys/
Create a deploy for a given release.
Path Parameters
- organization_id_or_slug(string)REQUIRED
- The ID or slug of the organization the resource belongs to. 
- version(string)REQUIRED
- The version identifier of the release 
Body Parameters
- environment(string)REQUIRED
- The environment you're deploying to 
- name(string)
- The optional name of the deploy 
- url(string)
- The optional URL that points to the deploy 
- dateStarted(string)
- An optional date that indicates when the deploy started 
- dateFinished(string)
- An optional date that indicates when the deploy ended. If not provided, the current time is used. 
- projects(array(string))
- The optional list of project slugs to create a deploy within. If not provided, deploys are created for all of the release's projects. 
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:- org:ci
- project:admin
- project:releases
- project:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/releases/{version}/deploys/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSESCHEMA
Copied.
Was this helpful?