Skip to main content
Nowledge Mem

Apply label deletion

POST
/labels/{label_id}/delete/apply

Atomically delete a label only if its current state still matches the supplied preview plan.

Path Parameters

label_id*string

Label id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/labels/string/delete/apply" \  -H "Content-Type: application/json" \  -d '{    "plan_id": "string"  }'
{  "action": "string",  "affected": {    "entities": 0,    "memories": 0,    "sources": 0,    "threads": 0,    "total": 0  },  "affected_ids": {    "entities": [      "string"    ],    "limit_per_type": 0,    "memories": [      "string"    ],    "sources": [      "string"    ],    "threads": [      "string"    ],    "truncated": true  },  "already_applied": true,  "duplicate_assignments": 0,  "plan_id": "string",  "source_label_id": "string",  "target_label_id": "string"}