POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses
Users with push
access can create deployment statuses for a given deployment.
OAuth app tokens and personal access tokens (classic) need the repo_deployment
scope to use this endpoint.
Servers
- https://api.github.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
repo |
String | Yes |
The name of the repository without the |
deployment_id |
Integer | Yes |
deployment_id parameter |
owner |
String | Yes |
The account owner of the repository. The name is not case sensitive. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
target_url |
String | No |
The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.
|
description |
String | No |
A short description of the status. The maximum description length is 140 characters. |
environment_url |
String | No |
Sets the URL for accessing your environment. Default: |
environment |
String | No |
Name for the target deployment environment, which can be changed when setting a deploy status. For example, |
log_url |
String | No |
The full URL of the deployment's output. This parameter replaces |
state |
String | Yes |
The state of the status. When you set a transient deployment to Possible values:
|
auto_inactive |
Boolean | No |
Adds a new |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.