Apply a bulk action
curl --request POST \
--url https://api-us.hihobbes.com/api/v1/custom-links/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customLinkIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api-us.hihobbes.com/api/v1/custom-links/actions"
payload = { "customLinkIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({customLinkIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api-us.hihobbes.com/api/v1/custom-links/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"action": "<string>",
"affectedCount": 123,
"customLinkIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"detail": "API key required or invalid."
}{
"detail": "API key does not include the required scope."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}Custom Links
Apply a Custom Link bulk action
Activate, deactivate, or move up to 500 Custom Links.
POST
/
api
/
v1
/
custom-links
/
actions
Apply a bulk action
curl --request POST \
--url https://api-us.hihobbes.com/api/v1/custom-links/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customLinkIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api-us.hihobbes.com/api/v1/custom-links/actions"
payload = { "customLinkIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({customLinkIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api-us.hihobbes.com/api/v1/custom-links/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"action": "<string>",
"affectedCount": 123,
"customLinkIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"detail": "API key required or invalid."
}{
"detail": "API key does not include the required scope."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}Requires
custom_links:write.
Use one action per request. Moving links accepts a campaign reference; deleting
a campaign later unfiles those links without deleting them.Authorizations
bearerapiKeyHeader
Hobbes API key with the hb_live_ prefix.
Body
application/json