Update a deploy
PATCH
/v1/deploys/{deployId}
const url = 'https://api.presscloud.example/v1/deploys/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"slug":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.presscloud.example/v1/deploys/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "slug": "example", "name": "example" }'Updates deploy-level basic metadata such as name and slug. Provide at least one field.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deployId
required
string
Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Updated deploy detail.
Media type application/json
object
deploy
required
object
id
required
string
accountId
required
string
slug
required
string
name
required
string
createdAt
required
integer
Example generated
{ "deploy": { "id": "example", "accountId": "example", "slug": "example", "name": "example", "createdAt": 1 }}Requested resource was not found.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}Requested operation conflicts with the current resource state.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}