POST tasks/{task_id}/fields
1 min
POST
https://api.cmp.optimizely.com/v3/tasks/{task_id}/fields
task_idstringUnique identifier of the task
acceptstringGenerated from available response content types
bodyobjectPayload to add a field to a task
201Added field to a task.
400Client error
401Authorization error
403Permission error
404Not found error
422Unprocessable entity error
curl --request POST \
--url https://api.cmp.optimizely.com/v3/tasks/{task_id}/fields \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"type": "checkbox",
"values": [],
"id": "41aac313bda1e40b6cde7116fc24a"
}'