API referenceCampaigns
Create
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
campaignId*string
Length
1 <= lengthname*string
Length
1 <= length <= 80slug?string
Match
^[a-z0-9-]+$Length
length <= 80polygon*
kind?string
Value in
- "delivery"
- "area"
active?boolean
priority?integer
Range
-9007199254740991 <= value <= 9007199254740991Response Body
application/json
curl -X POST "https://example.com/campaigns/zones/create" \ -H "Content-Type: application/json" \ -d '{ "campaignId": "string", "name": "string", "polygon": { "type": "Polygon", "coordinates": [ [ [ 0, 0 ], [ 0, 0 ], [ 0, 0 ], [ 0, 0 ] ] ] } }'null