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