Catalog
update_environment
Write grantIdempotent
Change an environment's slug, name, description or emoji. Only the fields given change; the class cannot. An archived environment cannot change. Returns the environment. Needs write access.
Inputs
environmentstringRequiredThe environment's slug, such as staging.
slugstringA new slug for the environment, such as preview.
namestringThe environment's display name, up to 80 characters, such as Staging.
descriptionnullable stringWhat the environment is for, up to 200 characters. null clears it.
emojinullable stringAn emoji shown with the name, up to 8 characters, such as 🧪. null clears it.
tools/callJSON-RPC
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "update_environment", "arguments": { "environment": "staging", "description": "Release candidates with test data." } }}POST/agent/v1/environments:update
curl -X POST https://api.qa.clankership.net/agent/v1/environments:update \ -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "environment": "staging", "description": "Release candidates with test data." }'