Skip to main content
PATCH
/
v1
/
domains
/
{id}
Update Domain
curl --request PATCH \
  --url https://api.example.com/v1/domains/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "click_tracking": true,
  "open_tracking": true
}
'
id
string
required
The ID of the domain to update.
click_tracking
boolean
Enable or disable click tracking for this domain.
open_tracking
boolean
Enable or disable open tracking for this domain.

Request

cURL
curl -X PATCH https://www.unosend.co/api/v1/domains/dom_123 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "click_tracking": true,
    "open_tracking": true
  }'

Response

200
{
  "id": "dom_123",
  "domain": "yourdomain.com",
  "click_tracking": true,
  "open_tracking": true
}