Update Destination
curl --request PATCH \
--url https://api.domesystems.ai/v1/webhooks/destinations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "<string>",
"id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"active": true,
"headers": {
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
]
},
"content_format": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
'import requests
url = "https://api.domesystems.ai/v1/webhooks/destinations/{id}"
payload = {
"workspace_id": "<string>",
"id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"active": True,
"headers": { "headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
] },
"content_format": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspace_id: '<string>',
id: '<string>',
name: '<string>',
endpoint_url: '<string>',
active: true,
headers: {headers: [{name: '<string>', source: '<string>', value: '<string>'}]},
content_format: '<string>',
provider_settings: {},
provider_credentials: {}
})
};
fetch('https://api.domesystems.ai/v1/webhooks/destinations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.domesystems.ai/v1/webhooks/destinations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'workspace_id' => '<string>',
'id' => '<string>',
'name' => '<string>',
'endpoint_url' => '<string>',
'active' => true,
'headers' => [
'headers' => [
[
'name' => '<string>',
'source' => '<string>',
'value' => '<string>'
]
]
],
'content_format' => '<string>',
'provider_settings' => [
],
'provider_credentials' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.domesystems.ai/v1/webhooks/destinations/{id}"
payload := strings.NewReader("{\n \"workspace_id\": \"<string>\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"active\": true,\n \"headers\": {\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"content_format\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\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))
}HttpResponse<String> response = Unirest.patch("https://api.domesystems.ai/v1/webhooks/destinations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": \"<string>\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"active\": true,\n \"headers\": {\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"content_format\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domesystems.ai/v1/webhooks/destinations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspace_id\": \"<string>\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"active\": true,\n \"headers\": {\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"content_format\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}"
response = http.request(request)
puts response.read_body{
"destination": {
"id": "<string>",
"workspace_id": "<string>",
"tenant_id": "<string>",
"name": "<string>",
"destination_type": "<string>",
"endpoint_url": "<string>",
"active": true,
"health_status": "<string>",
"circuit_state": "<string>",
"rate_limit_per_second": 123,
"concurrency_limit": 123,
"request_timeout_seconds": 123,
"max_body_bytes": 123,
"signing_key_id": "<string>",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"updated_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"provider_key": "<string>",
"provider_settings": {},
"content_format": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Absent = leave headers unchanged (zero Vault I/O). Present = replace the entire header set with the wrapper's contents (an empty set clears them).
Show child attributes
Show child attributes
Absent = leave content_format unchanged; present = set it ("object"|"array").
provider_settings, on a provider destination: empty = leave unchanged; a non-empty map is a FULL replacement of the provider settings (re-validated, and the endpoint URL is rebuilt). provider_key itself is immutable; rejected on a "webhook" (Custom) destination.
Show child attributes
Show child attributes
provider_credentials, on a provider destination: empty = leave unchanged (zero Vault I/O); a non-empty map merges per key into the stored credentials (write-only). Rejected on a "webhook" (Custom) destination.
Show child attributes
Show child attributes
Response
OK
Show child attributes
Show child attributes
Was this page helpful?
curl --request PATCH \
--url https://api.domesystems.ai/v1/webhooks/destinations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "<string>",
"id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"active": true,
"headers": {
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
]
},
"content_format": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
'import requests
url = "https://api.domesystems.ai/v1/webhooks/destinations/{id}"
payload = {
"workspace_id": "<string>",
"id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"active": True,
"headers": { "headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
] },
"content_format": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspace_id: '<string>',
id: '<string>',
name: '<string>',
endpoint_url: '<string>',
active: true,
headers: {headers: [{name: '<string>', source: '<string>', value: '<string>'}]},
content_format: '<string>',
provider_settings: {},
provider_credentials: {}
})
};
fetch('https://api.domesystems.ai/v1/webhooks/destinations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.domesystems.ai/v1/webhooks/destinations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'workspace_id' => '<string>',
'id' => '<string>',
'name' => '<string>',
'endpoint_url' => '<string>',
'active' => true,
'headers' => [
'headers' => [
[
'name' => '<string>',
'source' => '<string>',
'value' => '<string>'
]
]
],
'content_format' => '<string>',
'provider_settings' => [
],
'provider_credentials' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.domesystems.ai/v1/webhooks/destinations/{id}"
payload := strings.NewReader("{\n \"workspace_id\": \"<string>\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"active\": true,\n \"headers\": {\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"content_format\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\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))
}HttpResponse<String> response = Unirest.patch("https://api.domesystems.ai/v1/webhooks/destinations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": \"<string>\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"active\": true,\n \"headers\": {\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"content_format\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domesystems.ai/v1/webhooks/destinations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspace_id\": \"<string>\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"active\": true,\n \"headers\": {\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"content_format\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}"
response = http.request(request)
puts response.read_body{
"destination": {
"id": "<string>",
"workspace_id": "<string>",
"tenant_id": "<string>",
"name": "<string>",
"destination_type": "<string>",
"endpoint_url": "<string>",
"active": true,
"health_status": "<string>",
"circuit_state": "<string>",
"rate_limit_per_second": 123,
"concurrency_limit": 123,
"request_timeout_seconds": 123,
"max_body_bytes": 123,
"signing_key_id": "<string>",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"updated_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"provider_key": "<string>",
"provider_settings": {},
"content_format": "<string>"
}
}