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

StatusDescrição
201Success
400Bad Request

Exemplos

1curl --request POST \
2	--url https://api.eduzz.com/webhook/v1/subscription/12345/status \
3	--header 'Accept: application/json' \
4	--header 'Content-Type: application/json' \
5	--header 'authorization: Bearer {{YOUR_ACCESS_TOKEN}}'\
6	--data '
7{
8  "status": "active"
9}
10'
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}