Presets API
List of methods for working with presets
createPreset
POST
https://api.pushwoosh.com/json/1.3/createPreset
Creates a new preset.
Request Body
Name | Type | Description |
---|---|---|
auth* | string | API access token from Pushwoosh Control Panel. |
name* | string | Preset name. |
applicationCode* | string | Pushwoosh application code. |
campaignCode | string | Code of a campaign to which you want to assign this preset. |
content* | object | Message content parameters. |
content.message* | string | String or array. Messages content. In case it's a string, the "Default" language will be used. |
content.action | object | Custom action parameters. See the example below. |
content.userData | array | Custom user data. Will be passed as "u" parameter in the payload (converted to JSON string). |
content.properties | array | Specific content for different platforms. See the example below. |
scheduling.sendRate | integer | Throttling. Valid values are from 100 to 1000 pushes/second. |
segmentation | object | Segmentation parameters |
segmentation.filter | string | Filter name |
segmentation.platforms* | array | Array of integers. The list of platforms ids. 1 - iOS, 2 - BB, 3 - Android, 5 - Windows Phone, 7 - OS X, 8 - Windows 8, 9 - Amazon, 10 - Safari, 11 - Chrome, 12 - Firefox. Ignored if "devices"<10 |
For platform-specific parameters, please refer to /createMessage
.
getPreset
POST
https://api.pushwoosh.com/json/1.3/getPreset
Retrieves the parameters of the specific push preset.
Request Body
Name | Type | Description |
---|---|---|
auth* | string | API access token from Pushwoosh Control Panel. |
preset_code* | string | Push preset code to retrieve information for. |
listPresets
POST
https://api.pushwoosh.com/json/1.3/listPresets
Retrieves the list of presets created for the app.
Request Body
Name | Type | Description |
---|---|---|
auth* | string | API access token from Pushwoosh Control Panel. |
application* | string | Pushwoosh app code. |
deletePreset
POST
https://api.pushwoosh.com/json/1.3/deletePreset
Deletes a preset from your account.
Request Body
Name | Type | Description |
---|---|---|
auth* | string | API access token from Pushwoosh Control Panel. |
preset_code* | string | Preset code retrieved from Pushwoosh Control Panel or /listPresets API response. |
Last updated