Rename a workspace
curl --request PATCH \
--url https://intentleads.si/api/v1/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Medical Group"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme Medical Group'})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}"
payload = { "name": "Acme Medical Group" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "<string>",
"name": "<string>"
}
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "workspace_not_found",
"message": "No such workspace in your organization."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Rename a workspace
Admin key required. Standard keys get 403 admin_key_required.
PATCH
/
api
/
v1
/
workspaces
/
{id}
Rename a workspace
curl --request PATCH \
--url https://intentleads.si/api/v1/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Medical Group"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme Medical Group'})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}"
payload = { "name": "Acme Medical Group" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "<string>",
"name": "<string>"
}
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "workspace_not_found",
"message": "No such workspace in your organization."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}