cURL
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" }
Update existing assessment (only by the original creator)
Request model for updating span assessment
Successful Response
Response model for span assessment