cURL
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 }
Set the deployment target information for a project.
A valid request URL is required to generate request examples
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The type of the deployment target
dedicated
enterprise
kubernetes
local
The name of the deployment target
Mounts which are always injected into pushed (e.g. enforce /var/log to be a local mount)
The status text of the response
The status code of the response
Was this page helpful?