Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📚 Docs Feedback: Faulty "to" description for event triggering #5623

Closed
1 task done
JonasDoe opened this issue May 22, 2024 · 1 comment
Closed
1 task done

📚 Docs Feedback: Faulty "to" description for event triggering #5623

JonasDoe opened this issue May 22, 2024 · 1 comment
Labels

Comments

@JonasDoe
Copy link

Duplicates

  • I have searched the existing issues

Related page

https://docs.novu.co/api-reference/events/trigger-event

Kind of issue

Unclear explanations

Issue description

I think the documentation about the "to" has two issues:

  • It doesn't really tell that lists are allowed since to types are "just" object or string, but not object[] and string
  • It is faulty about how to specify subscribers with type 3, where it claims to require a "topicKey"
    image
    Instead it must be "subscriberId"
    For example, in my case the correct usage would be:
{
...
  "to": [
    {
      "type": "Topic",
      "topicKey": "my_topic"
    },
    {
      "type": "Subscriber",
      "subscriberId": "my_id"
    }
  ]
...
}

But by folllowing the documentation, I'ld neither know that I can apply a list here, nor that I must pass "subscriberId": "my_id" instead of "topicKey": "my_id".

Context 🔦

No response

Copy link

linear bot commented May 22, 2024

@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant