Is there a way to send a metadata object in the same field that it is sent if you manually add a "custom metadata" object in a push notification campaign, but through the api instead of something that is static?
Page 1 / 1
Additionally, where does the metadata field on the /api/push/target go after you make the request?
Hello Dylan,
The metadata field in that API call is to be passed back via system webhooks. Not used for rendering.
I'm sorry but I am not following your first question, do you have a sample JSON body you are looking to send over? Maybe that would help.
Thanks!
Brian
The metadata field in that API call is to be passed back via system webhooks. Not used for rendering.
I'm sorry but I am not following your first question, do you have a sample JSON body you are looking to send over? Maybe that would help.
Thanks!
Brian
What does passed back via system webhooks mean in this case? Passed back to where?
The JSON body that I'm looking to send is essentially something like
```
{
"userId": <userId>
}
```
where `<userId>` is a dynamically populated value (per request to `/api/push/target`).
The JSON body that I'm looking to send is essentially something like
```
{
"userId": <userId>
}
```
where `<userId>` is a dynamically populated value (per request to `/api/push/target`).
Passed back to your data warehouse, so the content isn't used for rendering the message, just used for data storage where ever you would like.
You can definitely pass that field, userID in your metadata field. It would be the same as the recipientUserId field. But if you would like to include it in the metadata as well that would work just fine!
You can definitely pass that field, userID in your metadata field. It would be the same as the recipientUserId field. But if you would like to include it in the metadata as well that would work just fine!
Reply
Create a new Iterable Plaza community account
Already have an account? Login
Login to the Iterable Plaza Community
Not a customer? Create an account
Log in to Iterable (SSO)
Iterable customers and employees login/create an accountor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.