Set or remove attributes on channels
Changed onSet or remove attributes on a channel. Aside from Airship's default attributes, you must define attributes in the Airship dashboard before you can set them on channels.
Request
- Base URLhttps://go.urbanairship.com
- Auth
- HTTP basic
- or HTTP basic
- or HTTP bearer
- or OAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopeschn
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"audience": {
"amazon_channel": {
"amazon_channel": [
"00256e0b-b02f-4f12-a77f-4c3d57078330",
"f59970d3-3d42-4584-907e-f5c57f5d46a1"
]
},
"android_channel": {
"android_channel": [
"00256e0b-b02f-4f12-a77f-4c3d57078330",
"f59970d3-3d42-4584-907e-f5c57f5d46a1"
]
},
"channel": {
"channel": [
"00256e0b-b02f-4f12-a77f-4c3d57078330",
"f59970d3-3d42-4584-907e-f5c57f5d46a1"
]
},
"email_address": [
"00256e0b-b02f-4f12-a77f-4c3d57078330",
"f59970d3-3d42-4584-907e-f5c57f5d46a1"
],
"ios_channel": {
"ios_channel": [
"00256e0b-b02f-4f12-a77f-4c3d57078330",
"f59970d3-3d42-4584-907e-f5c57f5d46a1"
]
},
"web_channel": [
"00256e0b-b02f-4f12-a77f-4c3d57078330",
"f59970d3-3d42-4584-907e-f5c57f5d46a1"
]
}
}Response
The operation was successful.
Changes
- breaking
removed
subschema #2from the//request propertyoneOflist - breaking
removed
subschema #2from the//request propertyoneOflist - breaking
removed
subschema #2from the//request propertyoneOflist - breaking
removed
subschema #2from the//request propertyoneOflist - breaking
removed
subschema #3from the////request propertyoneOflist - info
added to the
////request propertyoneOflist - info
added to the
//request propertyoneOflist - info
added to the
//request propertyoneOflist - info
added to the
//request propertyoneOflist - info
added to the
//request propertyoneOflist
This list may be incomplete.
- breaking
- breaking
removed
subschema #1: Set Attributesubschema #2: Remove Attributefrom the//request propertyoneOflist
This list may be incomplete.
- breaking