Skip to Content

Update a chat completion

Replaces the metadata of a completion that was created with store: true. Metadata is the only field you can change. Send null to clear it.

POST
/chat/completions/{completion_id}

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

completion_id*string

The completion id to update.

Request Body

application/json
  1. body
metadata*

Up to 16 string pairs, or null. A key has at most 64 characters, and a value at most 512 characters.

Response Body

The chat completion object with the new metadata.

curl -X POST 'https://api.munito.ai/inference/v1/chat/completions/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "metadata": {
    "team": "research"
  }
}'
Example Response
Empty