Trialmile docs
API referenceCampaigns

Set State

POST
/campaigns/setState

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

id*string
Length1 <= length
state*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