Make a tracking domain the team's default
curl --request PATCH \
--url https://api.tryfuse.ai/api/v1/business/tracking-domains/{trackingDomainId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"isDefault": true
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/tracking-domains/{trackingDomainId}"
payload = { "isDefault": True }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({isDefault: true})
};
fetch('https://api.tryfuse.ai/api/v1/business/tracking-domains/{trackingDomainId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"trackingDomain": {
"id": "6a91c2d4e5f60718293a4b5c",
"hostname": "go.brightpay.com",
"status": "ACTIVE",
"dnsTarget": "d1x2y3z4abcdef.cloudfront.net",
"isDefault": true,
"verifiedAt": "2026-11-09T10:40:00.000Z",
"lastCheckedAt": "2026-11-09T10:40:00.000Z",
"lastError": null,
"createdAt": "2026-11-09T10:10:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Tracking domains
Make a tracking domain the team's default
Makes one of your team’s ACTIVE tracking domains the team’s default and clears the flag on its other domains. At send time a campaign without a pinned trackingDomainId uses the team’s ACTIVE domain, the default first. Only the team owner’s and admins’ keys can change it. Rate limit: 30 requests/minute and 1,000/day per token owner, shared by every /business/tracking-domains endpoint.
Errors:
403TRACKING_DOMAIN_READ_ONLY— The key belongs to a team member: tracking domains are the team’s, and only its owner and admins change them.404TRACKING_DOMAIN_NOT_FOUND— No tracking domain with this id belongs to your team (another team’s id answers the same), or it was removed.404TEAM_NOT_FOUND— The account this key belongs to resolves to no team.409TRACKING_DOMAIN_NOT_ACTIVE— The domain is not ACTIVE yet: only a verified domain can be the team’s default.422VALIDATION_FAILED— trackingDomainId is not a 24-character hex id, isDefault is missing or not true, or the body has an unknown key.429RATE_LIMITED— More than 30 requests in a minute, or 1,000 in a day, from this token owner across the /business/tracking-domains endpoints, which share one quota. Retry after the Retry-After seconds.500UNEXPECTED_ERROR— An unhandled failure; the detail stays in our logs and is never returned.
Requires one of the following token scopes: campaigns.
PATCH
/
business
/
tracking-domains
/
{trackingDomainId}
Make a tracking domain the team's default
curl --request PATCH \
--url https://api.tryfuse.ai/api/v1/business/tracking-domains/{trackingDomainId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"isDefault": true
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/tracking-domains/{trackingDomainId}"
payload = { "isDefault": True }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({isDefault: true})
};
fetch('https://api.tryfuse.ai/api/v1/business/tracking-domains/{trackingDomainId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"trackingDomain": {
"id": "6a91c2d4e5f60718293a4b5c",
"hostname": "go.brightpay.com",
"status": "ACTIVE",
"dnsTarget": "d1x2y3z4abcdef.cloudfront.net",
"isDefault": true,
"verifiedAt": "2026-11-09T10:40:00.000Z",
"lastCheckedAt": "2026-11-09T10:40:00.000Z",
"lastError": null,
"createdAt": "2026-11-09T10:10:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
Path Parameters
Body
application/json
Must be true: makes this domain the team's default and clears the flag on the team's other domains. Only an ACTIVE domain can be the default (409 TRACKING_DOMAIN_NOT_ACTIVE). There is no false: a default is cleared by making another domain the default or by removing this one.
Available options:
true