POST - Create In-App campaign
Request structure
Route
curl -X POST "https://api.batch.com/1.1/BATCH_API_KEY/in-app-campaigns/create" \
-H "Content-Type: application/json" \
-H "X-Authorization: BATCH_REST_API_KEY" \
-d '{
"name": "Test Campaign",
"local_start_date": "2017-06-01T14:00:00",
"live": true,
"trigger": {
"capping": 1,
"when": "NEXT_SESSION"
},
"landing": {
"theme": "HELLO-THEME",
"image": "https://static.batch.com/documentation/logo_batch_192.png",
"contents": [
{
"language": "en",
"header": "Welcome",
"title": "Hello!",
"body": "How is it going?",
"actions": [
{
"label": "Continue",
"action": "continue"
}
]
}
]
}
}'
Headers
Post data
Responses
Success
Failure
Last updated

