Skip to main content
POST
/
call
/
upsert_batch
Call Start Batch
curl --request POST \
  --url https://api.example.com/call/upsert_batch \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "batch": [
    {
      "req": {
        "start": {
          "project_id": "<string>",
          "op_name": "<string>",
          "started_at": "2023-11-07T05:31:56Z",
          "attributes": {},
          "inputs": {},
          "id": "<string>",
          "display_name": "<string>",
          "trace_id": "<string>",
          "parent_id": "<string>",
          "thread_id": "<string>",
          "turn_id": "<string>",
          "otel_dump": {},
          "wb_user_id": "<string>",
          "wb_run_id": "<string>",
          "wb_run_step": 123
        }
      },
      "mode": "start"
    }
  ]
}
'
{
  "res": [
    {
      "id": "<string>",
      "trace_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
batch
(CallBatchStartMode · object | CallBatchEndMode · object)[]
required

Response

Successful Response

res
(CallStartRes · object | CallEndRes · object)[]
required