curl --request PATCH \
--url https://api.stackone.com/unified/ats/assessments/orders/{id}/result \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"score": {
"label": "Percentage",
"value": "80",
"min": "0",
"max": "100"
},
"start_date": "2021-01-01T01:01:01.000Z",
"submission_date": "2021-01-01T01:01:01.000Z",
"summary": "Test is passed",
"result": {
"value": "passed",
"source_value": "Passed"
},
"result_url": "https://exmaple.com/result?id=xyz",
"attachments": [
{
"url": "http://example.com/resume.pdf",
"content_type": {
"value": "text",
"source_value": "Text"
}
}
],
"candidate": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"profile_url": "https://exmaple.com/candidate?id=xyz"
},
"passthrough": {
"other_known_names": "John Doe"
}
}'