I need to add details to named_user such as external identifier, Group-Name etc
How can I get and create attributes in my account using REST API?
The only example for setting attribute is to ios_channel
for setting attributes to named_user can I replace "ios_channel" by "named_user" followed by named_user_id?
And same for email_channel?
How can I attache details (attributes?) to named_user, how to create attribute via rest api?
Didn't find what you were looking for?
New post-
Hi Dekel,
Thanks for reaching out to Airship Technical Support! I have included some documentation links below, which will be useful for associating attributes with named_user_id's.- https://docs.airship.com/guides/messaging/user-guide/audience/segmentation/named-users/
- https://docs.airship.com/api/ua/#operation-api-named_users-named_user_id-attributes-post
Note: If you wish to set attributes on multiple named users at once, we recommend using /api/channels/attributes which supports anaudience
object in the request body.Let us know if you have any additional questions or concerns.
Regards,
Arushi S.
Technical Support Engineer
Airship | San Francisco, CAComment actions -
Hi Arushi
Thenks for your response, it seems like the right direction
But how do I create attribute?
according to the following error:{"ok": false,"error": "Unable to create any attribute changes. Errors: 'Unable to process attribute change for attribute: 'firstName'. Attribute not found. | Unable to process attribute change for attribute: 'lastName'. Attribute not found.'","error_code": 23}
It seems like attributes need to be defined prior to setting them to named users
Comment actions -
Hi Dekel,
You can reference the documentation linked here to create and add attributes within your Airship project/app: https://docs.airship.com/guides/messaging/user-guide/audience/segmentation/attributes/#add-attributes
Let us know if you have any additional questions or concerns.Regards,
Arushi S.
Technical Support Engineer
Airship | San Francisco, CAComment actions
Please sign in to leave a comment.
Comments
3 comments