This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Release ID
Body
application/json
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/releases/{id}/revert-status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "targetStatus": "submitted",
  "reason": "Auto-creation failed due to missing artist metadata. Reverting for re-review after corrections."
}'{
  "success": true,
  "message": "Release status reverted to \"submitted\" successfully",
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "submitted",
    "previousStatus": "approved",
    "reason": "Auto-creation failed due to missing artist metadata"
  }
}curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/releases/{id}/revert-status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "targetStatus": "submitted",
  "reason": "Auto-creation failed due to missing artist metadata. Reverting for re-review after corrections."
}'{
  "success": true,
  "message": "Release status reverted to \"submitted\" successfully",
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "submitted",
    "previousStatus": "approved",
    "reason": "Auto-creation failed due to missing artist metadata"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/releases/example-id/revert-status', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "targetStatus": "sample-targetStatus",
    "reason": "sample-reason"
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Release ID