Skip to Content
Assistant memory

Change one of the caller’s Assistant preferences

Edits the wording, topic, scope, channels or end date of one preference. Pass the `revision` you read to refuse a change made meanwhile.

PATCH
/api/assistant/memories/{memoryId}

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

memoryId*string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 100

Request Body

  1. body
projectId?|null
topic?string
Value in"language""tone""length""format""audience""channels""scheduling""workflow""other"
statement?string
Length1 <= length <= 1000
channelIds?array<>|null
expiresAt?|null
revision?integer
Range1 <= value

Response Body

Response for status 200

application/json
  1. response
memory*
Example Request
curl -X PATCH 'https://postdot.example/api/assistant/memories/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "memory": {
    "id": "string",
    "projectId": "string",
    "projectName": "string",
    "topic": "language",
    "statement": "string",
    "channelIds": [
      "string"
    ],
    "channels": [
      {
        "id": "string",
        "name": "string"
      }
    ],
    "expiresAt": 0,
    "basisMessageId": "string",
    "basis": "string",
    "source": "assistant",
    "sourceRef": "string",
    "revision": 1,
    "createdAt": 0,
    "updatedAt": 0
  }
}

Was this page helpful?