calculation_not_draft
The calculation is not a draft
Status: 409 Conflict
type: https://api.allisai.ai/errors/calculation_not_draft
When it is sent
Only a draft can be deleted. A validated or published calculation is a record. Reopen a validated calculation to return it to draft before deleting it; a published one cannot be deleted.
Example
{
"type": "https://api.allisai.ai/errors/calculation_not_draft",
"title": "The calculation is not a draft",
"status": 409,
"detail": "A human-readable explanation of this occurrence. Its wording varies; branch on code, never on detail.",
"code": "calculation_not_draft",
"request_id": "3a9f6c1e2b7d4e5f8a0b1c2d3e4f5a6b"
}
Operations that return it
- Delete a draft calculation (
deleteCalculation)