Post creation new Topic is wrong

Hello, I have always used the Api Reference to Post Creation new topics, but today when trying to use this endpoint it is giving an error. This is a previously registered topic, where key and name are strings. but here in the endpoint the key and name parameters are as object and the error says it must be string. Did anything change on this endpoint?
No description
No description
9 Replies
Pawan Jain
Pawan Jain5mo ago
@Larissa Palombo Thanks for sharing this. I see in API reference topics key field is of object type
Larissa Palombo
Larissa PalomboOP5mo ago
Is it a bug? @Pawan Jain
Pawan Jain
Pawan Jain5mo ago
@Larissa Palombo yes it is a bug
Larissa Palombo
Larissa PalomboOP5mo ago
Is there a deadline for solution? @Pawan Jain @Pawan Jain Do you have a bug fix date?
Novu_Bot
Novu_Bot5mo ago
@Larissa Palombo, you just advanced to level 2!
Pawan Jain
Pawan Jain5mo ago
@Larissa Palombo Checking with team @Larissa Palombo It may take some time to fix this as there are a couple of other issues that have come up with api reference I want to check if it is blocking you to use Novu? Can I share the curl example for this api?
Larissa Palombo
Larissa PalomboOP5mo ago
Hello @Pawan Jain, thanks for the answer. I need to register new topics and this is blocking progress here on my side. Is there any other way to register these new topics?
Pawan Jain
Pawan Jain4mo ago
@Larissa Palombo You can either use any of our sdk method or you can use this example curl
curl -L -X POST 'https://api.novu.co/v1/topics' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: ApiKey <API_KEY>' \
-d '{
"key": "<TOPIC_KEY>",
"name": "<TOPIC_NAME>"
}'
curl -L -X POST 'https://api.novu.co/v1/topics' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: ApiKey <API_KEY>' \
-d '{
"key": "<TOPIC_KEY>",
"name": "<TOPIC_NAME>"
}'
@Larissa Palombo This bug is not fixed on api reference page
Want results from more Discord servers?
Add your server