POST
/
logs
/
update-metadata
curl --request POST \
  --url https://api.openpipe.ai/api/v1/logs/update-metadata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filters": [
    {
      "field": "<string>",
      "equals": "<string>"
    }
  ],
  "metadata": {}
}'
{
  "matchedLogs": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
filters
object[]
required
metadata
object
required

Extra metadata to attach to the call for filtering. Eg { "userId": "123", "prompt_id": "populate-title" }

Response

200
application/json
Successful response
matchedLogs
number
required