Move a connection between test and production
Move a connection the caller owns, or one of their organization as its admin, between test and production. Only providers that declare environments (Alegra) accept it. Going to production needs confirm=true and a person (the web app, or the assistant after the user approved); agents over MCP can read the environment but never change it. A test connection refuses every stamping write.
Authorization
bearerApiKey Create a scoped API key in the Adlass settings.
In: header
Path Parameters
Resource identifier: connection_id.
uuidHeader Parameters
Optional correlation identifier.
length <= 128A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.
1 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/integrations/connections/123e4567-e89b-42d3-a456-426614174000/environment" \ -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \ -H "Content-Type: application/json" \ -d '{ "environment": "test" }'{ "id": "123e4567-e89b-42d3-a456-426614174000", "provider_key": "klaviyo", "auth_scheme": "example", "label": "Customer documents", "external_identity": "example", "owner": { "id": "123e4567-e89b-42d3-a456-426614174000", "email": "ada@example.com", "name": "Customer documents", "image_url": "example" }, "public_config": {}, "status": "ACTIVE", "enabled": false, "environment": "example", "safe_error_code": "example", "test_summary": {}, "pending_step": {}, "provider_contract_digest": "example", "last_tested_at": "example", "created_at": "example", "updated_at": "example", "setup_required": false, "offered_operations": [], "scope": {}, "issue": "example", "next_step": {}}