N
Novuβ€’9mo ago
cmendoza

To `data` not getting saved with the subscriber upon triggering workflow (REST API)

I'm letting a workflow trigger create new subscribers, however, there seems to be a bug where the custom data is not getting stored, see below for the curl command (the data.gender doesn't get stored in the newly created subscriber):
curl --location --request POST 'https://api.novu.co/v1/events/trigger' \
--header 'Authorization: ApiKey <REPLACE_WITH_API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "user-registration",
"to": {
"subscriberId": "123456789",
"firstName": "john",
"lastName": "smith",
"data": {
"gender": "male"
}
},
"tenant": null
}'
curl --location --request POST 'https://api.novu.co/v1/events/trigger' \
--header 'Authorization: ApiKey <REPLACE_WITH_API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "user-registration",
"to": {
"subscriberId": "123456789",
"firstName": "john",
"lastName": "smith",
"data": {
"gender": "male"
}
},
"tenant": null
}'
2 Replies
Pawan Jain
Pawan Jainβ€’9mo ago
hi @cmendoza We have an open PR for this issue https://github.com/novuhq/novu/pull/3987 I hope this will be fixed with version 0.20.0 🀞🏻
cmendoza
cmendozaβ€’9mo ago
Oh okay, thanks for this πŸ‘πŸ½