Rotate a Workspace Connection credential
const url = 'https://api.agentaab.com/api/app/example/workflow/connections/example/';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"secret":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.agentaab.com/api/app/example/workflow/connections/example/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "secret": "example" }'Replace the encrypted credential, clear cached capabilities, and require a new Connection test. The replacement credential is never returned.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
A non-empty, well-formed UTF-16 write-only replacement credential of at most 65,536 UTF-8 encoded bytes. It is never returned. Rotation clears cached capabilities and requires a new test.
Examplegenerated
{ "secret": "example"}Responses
Section titled “Responses”The rotated redacted Connection summary in a test-required state.
object
Redacted Workspace Connection state. It contains a server-managed reference and sanitized capabilities, never private credential material.
object
Opaque server-managed reference used by materialized v1 Tool bindings.
object
Bounded provider configuration with credential-shaped fields forbidden.
object
Sanitized bounded capability marker or MCP Tool manifest from the last successful test.
object
Example
{ "connection": { "scope": { "kind": "creator" }, "provider": "web_search", "credential_mode": "bearer", "status": "active", "last_error_code": "workspace_connection_test_required" }}The exact replacement body is invalid.
object
Stable public-safe Workspace Connection error identifier.
Example
{ "code": "workspace_connection_failed"}The creator session is missing, invalid, expired, or does not have a verified email.
object
Example
{ "code": "creator_session_required"}A public Agent Business runtime credential cannot access creator control-plane APIs.
object
Example
{ "code": "runtime_token_not_allowed"}The Workflow or Connection is missing, deleted, outside the caller’s scope, or not mutable by this caller.
The Agent Business is not a Workflow, the creator identity conflicts, or a concurrent Connection mutation won.
The bounded request exceeds 96 KiB.
object
Stable public-safe Workspace Connection error identifier.
Example
{ "code": "workspace_connection_failed"}An unexpected Workspace Connection failure was sanitized before returning it.
object
Example
{ "code": "workspace_connection_failed"}The configured creator identity service failed while verifying the session.
object
Example
{ "code": "creator_session_verification_failed"}Creator auth, control-plane storage, mutations, encryption, decryption, or Connection storage is unavailable.