Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
completions
/
{completion_id}
Update Completion
curl --request POST \
  --url https://api.example.com/api/v2/projects/{project_id}/completions/{completion_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "new_messages": [
    {
      "content": "<string>",
      "role": "system"
    }
  ],
  "eval_results": null
}
'
{
  "completion_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required
completion_id
string
required

Body

application/json
new_messages
eval_results
Eval Results · object

Response

200 - application/json

RecordCompletionInfo(completion_id: uuid.UUID = FieldInfo(annotation=NoneType, required=True, description='The session entry ID'))

completion_id
string<uuid>
required

The session entry ID