Workspace
update_workspace
Write grantIdempotent
Change the workspace's name, slug or allowed email domains. Only the fields given change; people whose email domain is allowed join on sign-in. Returns the workspace. Needs write access, and your person must be a workspace owner or admin.
Inputs
namestringThe workspace's name, such as Acme.
slugstringThe workspace's slug in its URLs, such as acme. Links with the old one stop working.
allowedDomainsarray of stringsEmail domains whose people join on sign-in, such as acme.dev. [] for none.
tools/callJSON-RPC
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "update_workspace", "arguments": { "name": "Acme", "allowedDomains": [ "acme.dev" ] } }}POST/clanker/v1/workspace:update
curl -X POST https://api.clankership.com/clanker/v1/workspace:update \ -H "Authorization: Bearer $CLANKER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme", "allowedDomains": [ "acme.dev" ] }'