Mudar Status
POST
https://api.eduzz.com/webhook/v1/subscription/:id/status
Required scopes:webhook_write
Habilita ou Desabilita uma Inscrição de WebHook
Path params
id
id do evento
Body params
status
string
Status a ser Setado
Response params (201)
id
string
Id do contato
Status codes
Status | Descrição |
201 | Success |
400 | Bad Request |
Exemplos
1curl --request POST \
2 --url https://api.eduzz.com/webhook/v1/subscription/12345/status \
3 --header 'accept: application/json' \
4 --header 'authorization: Bearer qzrUZcm4dISz/ayXgq7g9+GmusYbXHmIpJ7fbLYDIjUPtNwAN1rrsRZbeJ6e6tAlSUSy3w=='\
5 --data '
6{
7 "status": "active"
8}
9'
Response
1{
2 "name": "New subscription",
3 "url": "https://webhook.site/3559d85c-4c65-4035-854b-e935ef9c1278",
4 "secretId": "lw4nb4ghqox1k7cr05732cors",
5 "events": [
6 {
7 "name": "test.event_one",
8 "conditions": []
9 }
10 ],
11 "status": "disabled",
12 "id": "d01dgcs80wsjm8z9n67csd55o"
13}