Skip to main content
Nowledge MemNowledge Mem
API ReferenceSpacesSpace_refMerge

Merge Spaces

POST
/spaces/{space_ref}/merge

Move Memories, Threads, Library sources, and Working Memory into the target Space, retire the source profile, and preserve its references as target aliases. Apply is rejected when preview reports conflicts.

Path Parameters

space_ref*Space Ref

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/spaces/string/merge" \  -H "Content-Type: application/json" \  -d '{    "targetSpaceId": "string"  }'
{  "contentUpdated": {},  "counts": {    "memories": 0,    "sources": 0,    "threads": 0  },  "indexUpdated": {},  "merged": true,  "settings": {},  "sourceSpaceId": "string",  "targetSpaceId": "string",  "warnings": [    "string"  ],  "workingMemoryMoved": true}