Skip to main content
PATCH
/
v3
/
container-tags
/
{containerTag}
Update container tag settings
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({entityContext: 'This project contains research papers about machine learning.'})
};

fetch('https://api.supermemory.ai/v3/container-tags/{containerTag}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "containerTag": "sm_project_default",
  "entityContext": "This project contains research papers about machine learning.",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

containerTag
string
required

Body

application/json

Request body for updating container tag settings

entityContext
string
required

Custom context prompt for this container tag. Used to provide additional context when processing documents in this container. Maximum 1500 characters.

Maximum string length: 1500
Example:

"This project contains research papers about machine learning."

Response

Container tag settings updated successfully

Response after updating container tag settings

containerTag
string
required

The container tag identifier

Example:

"sm_project_default"

entityContext
string | null
required

Custom context prompt for this container tag. Used to provide additional context when processing documents in this container.

Example:

"This project contains research papers about machine learning."

updatedAt
string<datetime>
required

Last update timestamp