Search the docs

Search guides, API endpoints and MCP tools.

Catalog

restore_environment

Write grantIdempotent

Restore an archived environment, so it and its deployments are active again. Restoring an environment that is not archived changes nothing. Returns the environment. Needs write access.

Inputs

environmentstringRequired

The environment's slug, such as staging.

tools/callJSON-RPC
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "restore_environment",    "arguments": {      "environment": "staging"    }  }}
POST/clanker/v1/environments:restore
curl -X POST https://api.clankership.com/clanker/v1/environments:restore \  -H "Authorization: Bearer $CLANKER_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "environment": "staging"  }'
The same call over the clanker HTTP API. Set CLANKER_TOKEN to a clanker OAuth access token.