Skip to main content
POST
/
projects
/
{projectId}
/
environments
/
{environmentId}
/
deploy
Deploy an environment
curl --request POST \
  --url {schemes}://api.upsun.com/projects/{projectId}/environments/{environmentId}/deploy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategy": "rolling"
}
'
{
  "status": "<string>",
  "code": 123
}

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required
environmentId
string
required

Body

application/json
strategy
enum<string>
required

The deployment strategy (rolling or stopstart)

Available options:
rolling,
stopstart

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response