#Channels Property Not Respected When Creating or Updating Subscriber (API Issue)

1 messages · Page 1 of 1 (latest)

grave cove
#

When creating a new subscriber: when I add the channels property, it does not seem to be respected, and no channels are created. The same issue occurs when using the update endpoint. Am I doing something wrong? Here is the payload I used:

{
    "name": "Abdlrahman",
    "email": "[email protected]",
    "subscriberId": "123456",
    "channels": [
        {
            "providerId": "one-signal",
            "credentials": {
                "deviceTokens": ["device-token"]
            }
        }
    ]
}
plain merlin
#

Hey @grave cove I assume you are adding a subscriber here, correct?

#

What's not working? No One Signal provider? Did you add an integration for One Signal?

sacred fable
#

@grave cove

There is a bit of discrepancy here. channels field is available in open api spec and but included while creating a new subscriber

#

Let me check with eng team for this

grave cove
#

@plain merlin, could you clarify what you mean by adding an integration for OneSignal? From what I understand, the source code should populate the channels property. However, when I call the endpoint and check the database or retrieve subscriber data using the GET endpoint, the channels property is empty.

#

@sacred fable Thanks, FYI it's working for the bulk subscriber endpoint.

plain merlin
#

@grave cove I'll let @sacred fable take it from here, I think he might be more qualified 😄

sacred fable
#

@grave cove

We have identified a bug in this flow, channels properties should be stored with new subscriber.
We will fix the issue. I see you are self hosting Novu. You will have to wait till new release