Modify an existing stack in your ToolRouter account
PUT https://api.toolrouter.ai/v1/stacks/{stack_id}
Authorization: Bearer YOUR_API_KEY
Show Configuration Object
curl -X PUT "https://api.toolrouter.ai/v1/stacks/stack_123e4567-e89b-12d3-a456-426614174000" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "stack_name": "Updated Stack Name" }'
curl -X PUT "https://api.toolrouter.ai/v1/stacks/stack_123e4567-e89b-12d3-a456-426614174000" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "configuration": { "analytics_enabled": false } }'
curl -X PUT "https://api.toolrouter.ai/v1/stacks/stack_123e4567-e89b-12d3-a456-426614174000" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "stack_name": "Production Environment", "configuration": { "analytics_enabled": true } }'
{ "stack_id": "stack_123e4567-e89b-12d3-a456-426614174000", "stack_name": "Production Environment", "configuration": { "analytics_enabled": true }, "servers": [], "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-25T15:45:00Z" }
{ "detail": "Invalid configuration parameters" }
{ "detail": "Unauthorized" }
{ "detail": "Stack not found" }
{ "detail": "Too many requests" }
{ "detail": "Failed to update stack" }