Environments

Delete environment

Delete a given environment

DELETEhttps://cloud-api.calyptia.com/v1/environments/{environmentID}
Authorization
Path parameters
environmentID*string (uuid)
Response

OK

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/environments/{environmentID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();

Update environment

Updates a given environment

PATCHhttps://cloud-api.calyptia.com/v1/environments/{environmentID}
Authorization
Path parameters
environmentID*string (uuid)
Body
namenullable string
Response

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/environments/{environmentID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();