Campaigns
Create a campaign
Create a new campaign. A campaign is a planned sequence of activities that promotes a product or service. After creating a campaign, use POST /campaign-products to attach discounted products to it. See Campaigns for details.
post/campaigns
Request
- Base URLhttps://sandbox.crmcarecloud.com/webservice/rest-api/enterprise-interface/v1.0
- Auth
- HTTP bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Accept-Languagestring
The unique ID of the language code by ISO 639-1.
Request body
Example request
{
"campaign": {
"idcampaign": "8bed991c68a470e7aaeffbf048",
"campaign_id": "8bed991c68a470e7aaeffbf048",
"external_id": "CAMP-EXT-001",
"name": "Standard campaign",
"last_change": "2021-04-16 18:22:35.052987",
"state": 1
}
}Response
Created
Example response
{
"data": {
"campaign_id": "8ad8b2b701199684f1222961d6"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.