Skip to main content
POST
/
v3
/
container-tags
/
merge
Merge container tags
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({containerTags: ['<string>'], targetContainerTag: '<string>'})
};

fetch('https://api.supermemory.ai/v3/container-tags/merge', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "mergedCount": 123,
  "targetTag": "<string>",
  "deletedTags": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
containerTags
string[]
required

List of container tags to merge (min: 2, max: 2). All documents from these tags will be merged into the target.

targetContainerTag
string
required

Response

Merge completed successfully

success
boolean
required

Whether the merge operation completed successfully.

mergedCount
number
required

Number of documents that were merged.

targetTag
string
required

The target container tag that documents were merged into.

deletedTags
string[]
required

List of container tags that were deleted after successful merge.