Skip to main content
Nowledge Mem

Apply a label merge

POST
/labels/{label_id}/merge/apply

Atomically move assignments and remove the source label only if both labels still match the supplied preview plan.

Path Parameters

label_id*string

Source 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/merge/apply" \  -H "Content-Type: application/json" \  -d '{    "plan_id": "string",    "target_label_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"}