Trialmile docs
API referenceCampaigns

Create

POST
/campaigns/zones/create

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

campaignId*string
Length1 <= length
name*string
Length1 <= length <= 80
slug?string
Match^[a-z0-9-]+$
Lengthlength <= 80
polygon*
kind?string

Value in

  • "delivery"
  • "area"
active?boolean
priority?integer
Range-9007199254740991 <= value <= 9007199254740991

Response 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