PATCH
/
v5
/
spans
/
{span_id}
/
assessments
/
{assessment_id}
Update Span Assessment
curl --request PATCH \
  --url https://api.egp.scale.com/v5/spans/{span_id}/assessments/{assessment_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "comment": "<string>",
  "rating": 3,
  "approval_status": "approved",
  "rubric": {},
  "metadata": {},
  "overwritten_span_data": {}
}'
{
  "object": "span.assessment",
  "assessment_id": "<string>",
  "trace_id": "<string>",
  "span_id": "<string>",
  "created_by": "<string>",
  "assessment_type": "comment",
  "comment": "<string>",
  "rating": 123,
  "approval_status": "approved",
  "rubric": {},
  "metadata": {},
  "overwritten_span_data": {},
  "account_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

span_id
string
required
assessment_id
string
required

Body

application/json

Request model for updating span assessment

Response

200
application/json

Successful Response

Response model for span assessment