POST /releases//revert-status
This endpoint allows admins to revert a release status. Primarily used to revert failed auto-creation releases back to submitted status or completed releases back to draft. Allowed Status Reversions:- Approved (with failed auto-creation) → Submitted
- Completed → Draft
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Path Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
id | string | path | ✅ | Release ID |
Request Body
Example Request
Request Schema
Field | Type | Required | Description |
---|---|---|---|
targetStatus | string | ✅ | Target status to revert to |
reason | string | ✅ | Reason for status reversion (required for audit trail) |
Responses
✅ 200 - Success
⚠️ 400 - Bad Request - Invalid target status or missing reason
⚠️ 403 - Forbidden - Admin access required
⚠️ 404 - Not Found
❌ 500 - Internal Server Error
Tags
Release
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Release ID
Body
application/json