Dataset Items
Evaluations
Evaluation Items
Spans
Upsert Spans in Batch
PUT
/
v5
/
spans
/
batch
Copy
curl --request PUT \
--url https://api.egp.scale.com/v5/spans/batch \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"items": [
{
"id": "<string>",
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"group_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE",
"application_interaction_id": "<string>",
"application_variant_id": "<string>"
}
]
}'
Copy
{
"object": "list",
"items": [
{
"id": "<string>",
"object": "span",
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"group_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE",
"application_interaction_id": "<string>",
"application_variant_id": "<string>",
"account_id": "<string>",
"created_by_user_id": "<string>"
}
]
}
Authorizations
Headers
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request PUT \
--url https://api.egp.scale.com/v5/spans/batch \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"items": [
{
"id": "<string>",
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"group_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE",
"application_interaction_id": "<string>",
"application_variant_id": "<string>"
}
]
}'
Copy
{
"object": "list",
"items": [
{
"id": "<string>",
"object": "span",
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"group_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE",
"application_interaction_id": "<string>",
"application_variant_id": "<string>",
"account_id": "<string>",
"created_by_user_id": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.