Update Setting
PUT
/user/settings/{key}Authorization
bearerAuth AuthorizationBearer <token>
Your Maton API key, sent as Authorization: Bearer <MATON_API_KEY>. Create one at https://maton.ai/settings.
In: header
Path Parameters
key*string
The setting's key.
Value in
"capture_bodies" | "capture_context"Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
value*unknown
New value. Its type must match the setting's, e.g. a boolean for capture_bodies.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT \ "https://api.maton.ai/user/settings/capture_bodies" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{"value": true}'{}{
"message": "Setting `capture_context` requires `capture_bodies` to be enabled first.",
"type": "Bad Request",
"code": 400
}{
"message": "Invalid API key.",
"type": "Unauthorized",
"code": 401
}{
"message": "Too many requests.",
"type": "Too Many Requests",
"code": 429
}{
"message": "Internal server error.",
"type": "Internal Server Error",
"code": 500
}