cURL
API_KEY='live_...'BATCH_ID='batch_123'curl --request POST \ --url "https://api.scale.com/v2/batch/metadata" \ --header "Authorization: Bearer $API_KEY" \ --header "Content-Type: application/json" \ --data '{ "batch_id": "'$BATCH_ID'", "metadata": { "priority": "high", "dataset_version": "v1.2" } }'
{ "id": "batch_123", "name": "Batch Name Example", "project": "project_123", "created_at": "2022-07-25T07:32:34.318Z", "status": "completed", "callback": "https://example.com/callback", "metadata": {}, "completed_at": "2022-07-26T07:32:34.318Z" }
Update the metadata for a Batch.
Authentication
batch_id
batch_name
Your API Key is the Bearer token. See the Authentication section to learn how to access your key.
Batch metadata updated successfully.
The response is of type object.
object