API reference

API reference · Playground

Switch memory on or off for one thread

PUT/api/chat/memorySigned in session

Same origin only. A 404 while memory is off or for another person's thread.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
conversationrequiredinteger
enabledrequiredboolean

Example

{
  "conversation": 0,
  "enabled": false
}

Answer 200

Switched.

Fields of the 200 answer
FieldTypeWhat it is
conversationinteger
enabledboolean

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter