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,
  "status": "queued",
  "mergeId": "<string>",
  "targetTag": "<string>",
  "sourceTags": [
    "<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 queued successfully

success
boolean
required

Whether the merge job was queued successfully.

status
enum<string>
required

The queued status of the merge job.

Available options:
queued
mergeId
string
required

Identifier for the queued merge job.

targetTag
string
required

The target container tag that documents will be merged into.

sourceTags
string[]
required

List of source container tags queued for merge.