Add missing header field in campaign creation docs. Closes #1561.

This commit is contained in:
Kailash Nadh 2023-11-01 18:49:48 +05:30
parent ccceaa6e92
commit 3641f74c64

View file

@ -208,6 +208,7 @@ Creates a new campaign.
| `messenger` | String | Optional | `email` or a custom messenger defined in the settings. If left empty, `email` is used. |
| `template_id` | Number | Optional | ID of the template to use. If left empty, the default template is used. |
| `tags` | []String | Optional | Array of string tags to mark the campaign. |
| `headers` | []Map | Optional | Array of key-value pairs to be sent as SMTP headers. eg: `[{"x-custom-header": "value"}]`. |
@ -264,7 +265,6 @@ Name | Parameter Type | Data Type | Required/Optional | Description
`campaign_id` | Path Parameter | Number | Required | The id value of the campaign whose status is to be modified.
`status` | Request Body | String | Required | `scheduled`, `running`, `paused`, `cancelled`.
###### Note:
> * Only "scheduled" campaigns can be saved as "draft".
* Only "draft" campaigns can be "scheduled".