SnozeDevelopers
API referenceResources

Preview what deleting a workspace item would affect

Returns the dependency impact report for the item, separating dependents that block deletion from ones that are only warnings. Requires read access to the item. Use it before `delete` to decide whether the confirmation flag is needed.

GET
/v1/workspaces/{workspaceId}/items/{itemId}/deletion-impact
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
itemId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/items/string/deletion-impact"
{  "data": {    "target": {      "kind": "workspace_item",      "id": "string",      "label": "string"    },    "status": "safe",    "summary": {      "blockers": 0,      "warnings": 0,      "cascades": 0    },    "entries": [      {        "id": "string",        "kind": "workspace_item",        "level": "blocking",        "label": "string",        "reason": "string",        "action": "string",        "remediation": {          "capability": "actions.delete",          "args": {            "actionId": "string"          }        },        "owner": {          "id": "string",          "kind": "string",          "label": "string"        }      }    ]  }}