NovuN
Novu3y ago
2 replies
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
       }'
Was this page helpful?