API referenceCampaigns
Set State
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
id*string
Length
1 <= lengthstate*string
Value in
- "draft"
- "pre_live"
- "live"
- "at_capacity"
- "out_of_stock"
- "dead"
Response Body
application/json
curl -X POST "https://example.com/campaigns/setState" \ -H "Content-Type: application/json" \ -d '{ "id": "string", "state": "draft" }'null