Rename a workspace
curl --request PATCH \
--url https://agents.labs.bandwidth.com/api/v1/user/workspaces/{tenant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://agents.labs.bandwidth.com/api/v1/user/workspaces/{tenant_id}"
payload = { "name": "<string>" }
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: '<string>'})
};
fetch('https://agents.labs.bandwidth.com/api/v1/user/workspaces/{tenant_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"groups": [
{
"id": 123,
"is_selected": true,
"role": "<string>",
"name": "<string>"
}
],
"public_id": "<string>",
"tenant_id": 123,
"tenant_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Workspace management
Rename a workspace
Change the display name of a workspace.
PATCH
/
api
/
v1
/
user
/
workspaces
/
{tenant_id}
Rename a workspace
curl --request PATCH \
--url https://agents.labs.bandwidth.com/api/v1/user/workspaces/{tenant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://agents.labs.bandwidth.com/api/v1/user/workspaces/{tenant_id}"
payload = { "name": "<string>" }
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: '<string>'})
};
fetch('https://agents.labs.bandwidth.com/api/v1/user/workspaces/{tenant_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"groups": [
{
"id": 123,
"is_selected": true,
"role": "<string>",
"name": "<string>"
}
],
"public_id": "<string>",
"tenant_id": 123,
"tenant_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Requires an OAuth bearer token and Admin or Owner access to that workspace. Use its
tenant_id, not a group ID. The public ID and numeric ID stay unchanged. Empty names return 400, duplicate names 409, insufficient role 403, and a missing workspace 404.Authorizations
Bandwidth Labs OAuth access token. Uses the user's selected workspace; the workspace header is not required. Do not also send an API key. Bearer-only operations may additionally require the Labs super_user role.
Path Parameters
Body
application/json