POST
/
campaign_templates
/
{id}
/
campaign_drafts
curl --request POST \
  --url https://api.pocketflows.com/campaign_templates/{id}/campaign_drafts \
  --header 'Authorization: Basic <encoded-value>'
{
  "name": "<string>",
  "enrolled_customers": [
    "<string>"
  ],
  "segment": "<string>",
  "steps": [
    {
      "type": "email",
      "custom_step_id": "<string>",
      "email_template_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the campaign template

Response

200 - application/json

The created Campaign object

The response is of type object.