Update headers/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
Update headers/URL
Updates the webhook URL and/or custom headers. Send headers: {} to remove them all.
PATCH
/
v1
/
webhooks
/
{id}
Update headers/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
}
}Was this page helpful?

