curl --request PATCH \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/links/{linkId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "FB US story ads v2"
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/links/{linkId}"
payload = { "name": "FB US story ads v2" }
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({name: 'FB US story ads v2'})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/links/{linkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"createdAt": "2026-11-01T09:00:00Z",
"destination": "chat",
"fans": 57,
"greeting": "Hey 👋",
"id": "mpl_3c5e7a9b1d3f5a7c9e1b",
"name": "FB US story ads",
"purchases": 9,
"revenueCents": 15300,
"url": "https://app.example.com/pay/u/t/Ab3dEf9h",
"visits": 412
}Update an ad link
Renames an ad link, or changes where it opens or its prefilled first message. Send only what changes. Its url stays the same.
Scope: requires links:write.
Rate limit: the general limit of 120 requests per 60 seconds per credential.
Idempotency: send an Idempotency-Key header to make retries safe: a replay within 24 hours returns the original response with Idempotent-Replayed: true.
curl --request PATCH \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/links/{linkId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "FB US story ads v2"
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/links/{linkId}"
payload = { "name": "FB US story ads v2" }
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({name: 'FB US story ads v2'})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/links/{linkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"createdAt": "2026-11-01T09:00:00Z",
"destination": "chat",
"fans": 57,
"greeting": "Hey 👋",
"id": "mpl_3c5e7a9b1d3f5a7c9e1b",
"name": "FB US story ads",
"purchases": 9,
"revenueCents": 15300,
"url": "https://app.example.com/pay/u/t/Ab3dEf9h",
"visits": 412
}Authorizations
Headers
Optional. A unique value (8 to 64 letters, digits, - or _; a UUID is ideal) that makes a retry safe: the same key with the same request within 24 hours returns the stored response, with Idempotent-Replayed: true, instead of doing the work twice. The same key with a different request is 409 IDEMPOTENCY_KEY_REUSED; while the first request still runs it is 409 IDEMPOTENCY_IN_PROGRESS. A malformed key is 400 VALIDATION_ERROR.
8 - 64^[A-Za-z0-9_-]{8,64}$Path Parameters
Body
Response
The updated ad link.