#victoria-webhook-version

1 messages · Page 1 of 1 (latest)

pure sunBOT
rustic zodiac
#

victoria-webhook-version

sterile imp
#

a question: i always need to send a weebhook version in my api?

#

if i dont send this parameter, it automatically send in the newest version?

#

because earlier i was not sending api_version in my api, and i was getting an 400 error

#

and then i setted the api_version parameter, with the 2020-08-27 version, it was working fine untill it wasnt ahahha

#

now i have the 2020-08-27 version on api but 2022-08-01 in my dashboard. can i change the dashboard version ?

rustic zodiac
#

no that's not how it works at all

#

The API version used for Events is entirely separate from the API version used for the API requests you make

#

You could make a request today with 2020-08-27 and have a WebhookEndpoint configured to receive Events with the API version 2015-02-18 from 7+ years ago and it'd still work fine

#

You also can't change the default API version in the Dashboard to an older one

sterile imp
#

oh nice! i didnt know it was possible!

#

so what i have to do is delete the actual webhook in my dashboard and create another one in the api

#

setting the version that i want

#

is that correct?

prisma flare
#

That's correct!

sterile imp
#

just to make sure: i cant edit the actual webhook that i created via dashboard right? the one that already exists and im using it

prisma flare
#

All your webhooks should be viewable/editable from the dashboard, yes

sterile imp
prisma flare
#

No, that's why you have to create it via the API

sterile imp
#

is there a possible way to migrate the events from a webhook to another?

#

because i dont want to lose the events on the webhook that i will delete

prisma flare
#

You mean the ones that are failing?

sterile imp
#

yes

prisma flare
#

You would pass delivery_success: false to get Events that weren't successfully delivered to your webhook endpoint

sterile imp
#

nice, i think im going to try that!

#

thank you! if i have more questions or trouble doing something, i come back here!