Skip to main content
Version: 2.0

Delete Instruction Version API Definition

The Delete Instruction Version API enables you to permanently remove a specific version of a behavioral instruction. This is useful for managing the version history of your instructions and removing outdated or unused versions.

Delete Instruction Version Request and Response

To delete a specific version of an instruction, send a DELETE request to /v2/instructions/{instruction_id}/versions/{version}. The instruction_id and version are the unique identifiers of the instruction and the specific version you want to remove.

There is no request body. If the operation is successful, the API responds with a 204 No Content status, indicating that the instruction version was removed.

Example Request

EXAMPLE REQUEST
1

Example Response

EXAMPLE RESPONSE
1

Error Responses

The API returns standard HTTP error codes with detailed error information:

HTTP CodeError CodeDescription
400invalid_requestInvalid instruction_id or version format
401unauthorizedInvalid or missing API key
403forbiddenInsufficient permissions for deleting this instruction version
404not_foundInstruction with the specified ID and version does not exist
429rate_limit_exceededRequest rate limit exceeded