Skip to main content
PATCH
/
api
/
v1
/
skills
/
{id}
/
memories
/
{memoryId}
curl --request PATCH \
  --url https://api.staging.getmodus.com/api/v1/skills/{id}/memories/{memoryId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "memory": "User prefers bullet-point summaries."
}
'
{
  "error": {
    "message": "Skill was not found or you lack permission.",
    "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
    "info": {
      "skillId": "sk_abc123"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
number
required

Numeric skill id.

Example:

42

memoryId
string
required

Opaque memory id as returned by the list / search endpoints.

Example:

"mem_01HRQX...ABC"

Query Parameters

updateMask
string

AIP-134 comma-separated field paths to update.

Example:

"memory,metadata"

Body

application/json
memory
string

Replacement memory text. Optional — supply when revising the text.

Example:

"User prefers concise bullet-point summaries."

metadata
object

Replacement metadata bag — forwarded verbatim to mem0. Optional.

Example:
{
"topic": "preferences",
"confidence": "high"
}

Response