# Switch on or off using and saving memory in conversations on this project

`PUT /agents/assistant/memory/settings` · Rivier · agents

Switch on or off using and saving memory in conversations on this project. An administrator changes it.

- Scope: agents:write
- Sdk: agents.assistant.memorySettingsSet
- Cli: agents assistant memory settings set

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X PUT 'https://api.rivier.ai/agents/assistant/memory/settings' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "enabled": false
}'
```
