I'm trying to set up one argument for a few channels.
POST: https://go.urbanairship.com/api/channels/attributes
Payload:
{
"audience": {
"OR": [
{"ios_channel": [
"Channel_id_for_iOS_device_1",
"Channel_id_for_iOS_device_1"
]},
{"android_channel": [
"Channel_id_for_android_device_1",
"Channel_id_for_android_device_2",
"Channel_id_for_android_device_3"
]}
]
},
"attributes": [
{
"action": "set",
"key": "test",
"value": "Test"
}
]
}
The response is:
{
"ok": false,
"error": "Could not parse request body.",
"error_code": 40000,
"details": {
"error": "Error parsing JSON at line: 3, column: 13",
"location": {
"line": 3,
"column": 13
}
}
}
If I use only ios_channel or android_channel it works:
{
"audience": {
"android_channel": [
"Channel_id_for_android_device_1",
"Channel_id_for_android_device_2",
"Channel_id_for_android_device_3"
]
},
"attributes": [
{
"action": "set",
"key": "test",
"value": "Test"
}
]
}
Comments
2 comments