Routines

Preview deleting a routine

GET
/routines/{skill_id}/delete-preview

Preview routines.delete: mode hard (no run history, the routine is removed) or soft (runs stay readable, the routine disappears), and the active runs, automations and queues that need force: true.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

skill_id*string

Resource identifier: skill_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/routines/123e4567-e89b-42d3-a456-426614174000/delete-preview"
{  "skill_id": "123e4567-e89b-42d3-a456-426614174000",  "mode": "hard",  "requires_force": false,  "spaces_with_runs": [    {      "space_id": "123e4567-e89b-42d3-a456-426614174000",      "name": "Customer documents"    }  ],  "active_runs": [    {      "run_id": "123e4567-e89b-42d3-a456-426614174000",      "space_id": "123e4567-e89b-42d3-a456-426614174000",      "kind": "agent"    }  ],  "automations": [    {      "trigger_id": "123e4567-e89b-42d3-a456-426614174000",      "space_id": "123e4567-e89b-42d3-a456-426614174000",      "kind": "schedule"    }  ],  "queues": [    {      "queue_id": "123e4567-e89b-42d3-a456-426614174000",      "slug": "customer-documents",      "space_id": "123e4567-e89b-42d3-a456-426614174000"    }  ]}