Atualizar cabeçalhos/URL
curl --request PATCH \
--url https://api.notifique.dev/v1/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"headers": {
"Authorization": "Bearer teste"
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({headers: {Authorization: 'Bearer teste'}})
};
fetch('https://api.notifique.dev/v1/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/webhooks/{id}"
payload = { "headers": { "Authorization": "Bearer teste" } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/webhooks/{id}"
payload := strings.NewReader("{\n \"headers\": {\n \"Authorization\": \"Bearer teste\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": "clxx...",
"name": "Exemplo",
"url": "https://example.com/resource",
"events": [
"string"
],
"instanceIds": [
{}
],
"enabled": true
}
}Webhooks
Atualizar cabeçalhos/URL
Atualiza a URL e/ou os cabeçalhos customizados do webhook. Envie headers: {} para remover todos.
PATCH
/
v1
/
webhooks
/
{id}
Atualizar cabeçalhos/URL
curl --request PATCH \
--url https://api.notifique.dev/v1/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"headers": {
"Authorization": "Bearer teste"
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({headers: {Authorization: 'Bearer teste'}})
};
fetch('https://api.notifique.dev/v1/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/webhooks/{id}"
payload = { "headers": { "Authorization": "Bearer teste" } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/webhooks/{id}"
payload := strings.NewReader("{\n \"headers\": {\n \"Authorization\": \"Bearer teste\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": "clxx...",
"name": "Exemplo",
"url": "https://example.com/resource",
"events": [
"string"
],
"instanceIds": [
{}
],
"enabled": true
}
}Autorizações
ntfWhBearerAuthntfWhApiKeyHeader
API key sk_live_... ou sk_test_....
Parâmetros de caminho
Esta página foi útil?

