Skip to main content
POST
/
projects
/
{projectId}
/
deployments
Create a project deployment target
curl --request POST \
  --url {schemes}://api.upsun.com/projects/{projectId}/deployments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "dedicated",
  "name": "<string>",
  "enforced_mounts": {}
}
'
{
  "status": "<string>",
  "code": 123
}

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required

Body

application/json
type
enum<string>
required

The type of the deployment target.

Available options:
dedicated,
enterprise,
local
name
string
required

The name of the deployment target.

enforced_mounts
Enforced Mounts · object

Mounts which are always injected into pushed (e.g. enforce /var/log to be a local mount).

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response