Delete a state from a lifecycle
DELETE
/api/v1/projects/{projectId}/lifecycles/states/{stateId}
const url = 'https://app.avera.io/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lifecycles/states/example?sandboxId=example';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://app.avera.io/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lifecycles/states/example?sandboxId=example'Stages the deletion into the change request named by sandboxId; permission cells citing the state are staged for deletion with it. Deleting a state that exists only as a staged create reverts the create, so the endpoint answers 204 either way.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string format: uuid
stateId
required
string
Query Parameters
Section titled “Query Parameters”sandboxId
required
string
Responses
Section titled “Responses”OK