Skip to main content
POST
/
api
/
jobs
/
bulk
/
revoke
POST /api/jobs/bulk/revoke
curl --request POST \
  --url https://app.sluice.sh/api/api/jobs/bulk/revoke

Documentation Index

Fetch the complete documentation index at: https://docs.sluice.sh/llms.txt

Use this file to discover all available pages before exploring further.

Revokes up to 100 jobs in a single request. Each job is processed independently — if some jobs can’t be revoked (wrong state, not found), the others are still revoked.

Authentication

Session cookie (dashboard).

Request body

{
  "ids": [
    "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "b2c3d4e5-f6a7-8901-bcde-f12345678901"
  ]
}
FieldTypeDescription
idsstring[]Array of Sluice job UUIDs. Min 1, max 100.

Response

{
  "results": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "success": true,
      "state": "cancelled"
    },
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "success": false,
      "error": "Job cannot be revoked from state 'completed'."
    }
  ]
}

Result fields

FieldTypeDescription
idstringJob UUID.
successbooleanWhether the revoke was successful.
statestring?New state after revoke (present when success is true).
errorstring?Error message (present when success is false).