POST
/
v2
/
task
/
metadata
API_KEY='live_...'
TASK_ID='task_123'
curl --request POST \
--url "https://api.scale.com/v2/task/metadata" \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"task_id": "'$TASK_ID'",
"metadata": {
"priority": "high",
"source": "api"
}
}'
{
  "task_id": "task_123",
  "project": "project_123",
  "batch": "batch_123",
  "status": "pending",
  "created_at": "2025-01-01T08:31:03.169Z",
  "metadata": {
    "priority": "high",
    "source": "api",
    "custom_field": "value"
  },
  "threads": []
}

Authorizations

Authorization
string
header
required

Your API Key is the Bearer token. See the Authentication section to learn how to access your key.

Body

application/json

Response

200
application/json

Task metadata updated successfully.

The response is of type object.