curl --request PATCH \
--url https://intentleads.si/api/v1/lanes/{code}/keywords \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"group": "B"
}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({group: 'B'})
};
fetch('https://intentleads.si/api/v1/lanes/{code}/keywords', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/lanes/{code}/keywords"
payload = { "group": "B" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Move a keyword to another group
Moves a keyword, matched on its exact text (case-insensitive), to group A, B, C or D. Group A: researching any of its keywords. Each group B-D in use adds: and also researching at least one of its keywords. A group with no live keyword yet stops the lane being checked or exported (409 group_not_live). Counts update at the lane’s next check.
Free. This doesn’t spend your balance.
curl --request PATCH \
--url https://intentleads.si/api/v1/lanes/{code}/keywords \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"group": "B"
}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({group: 'B'})
};
fetch('https://intentleads.si/api/v1/lanes/{code}/keywords', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/lanes/{code}/keywords"
payload = { "group": "B" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Authorizations
Headers
Only with an organization key: the workspace to act in (its id; ?workspace=<id> works too). Lanes, leads, exports, lists, websites and webhooks live in workspaces. Without it, an organization key acts in its only workspace, or gets 400 workspace_required (with the list of workspaces) when it has several. Workspace keys don't need it. On keys, team and activity it switches from the organization's own to that workspace's.