Replace a trait
Authorization
BearerAuth AuthorizationBearer <token>
MagickMind API key (mm_...) or user JWT, sent as Authorization: Bearer <token>. /v1/chat/completions accepts an API key only. JWTs (not mm_ keys) may alternatively be passed as a ?token= query parameter.
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/traits/string" \ -H "Content-Type: application/json" \ -d '{ "category": "string", "default_learning_rate": 0, "description": "string", "display_name": "string", "supports_dyadic": true, "type": "NUMERIC", "visibility": "PRIVATE" }'{ "categorical_config": { "default": "string", "options": [ "string" ] }, "category": "string", "created_at": "string", "default_learning_rate": 0, "default_lock": "HARD", "description": "string", "display_name": "string", "id": "string", "multilabel_config": { "default": [ "string" ], "max_selections": 0, "options": [ "string" ] }, "name": "string", "namespace": "SYSTEM", "numeric_config": { "default": 0, "max": 0, "min": 0 }, "owner_id": "string", "supports_dyadic": true, "type": "NUMERIC", "updated_at": "string", "visibility": "PRIVATE"}{ "error": { "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "request_id": "string", "errors": [ { "field": "string", "message": "string" } ] }}{ "error": { "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "request_id": "string", "errors": [ { "field": "string", "message": "string" } ] }}