Campaign status can be updated programmatically via API using the endpoint /v1/campaigns/{id}.
Modifying the status of a campaign
To modify the status of a campaign via API, you'll first need the ID of the campaign you wish to send. This can be obtained in two ways:
- Directly in the campaign URL of the campaign in question in Sendingly
- Or in response to the API call enabling the creation of a campaign with the endpoint
/v1/campaigns
Once you have the campaign ID, use the PATCH method for the endpoint /v1/campaigns/{id} with the status you wish to obtain mentioned in the API call.
As a reminder, it is only possible to modify the campaign status programmatically. However, it's still possible to edit other campaign elements from the Sendingly interface.
Conclusion
It is possible at any time to change the status of a campaign programmatically via API.