Change the name or configuration (without secrets), or disable or enable it (credentials.manage)
const url = 'https://api.replifier.com/v1/connections/pcn_01hx0000000000000000000000';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","region":"example","config":{"additionalProperty":"example"},"enabled":true}'};
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.replifier.com/v1/connections/pcn_01hx0000000000000000000000 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "region": "example", "config": { "additionalProperty": "example" }, "enabled": true }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
pcn_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Example generated
{ "name": "example", "region": "example", "config": { "additionalProperty": "example" }, "enabled": true}Responses
Section titled “Responses”Connection
object
object
object
object
Example
{ "provider": "ses", "status": "pending", "lastCheck": [ { "status": "ok" } ]}With the credentials_change approval rule and a configuration or region change: it waits for another person
object
Brand of the action; null if it applies to the whole organization.
executed: approved and the action took place; failed: approved but the action failed (see failureCode); expired: 72 h passed without a decision.
What the approver sees (no secrets).
object
Person (usr_…) or API key (key_…) that requested it.
Error code of the action when it ended up failed.
People who can decide it (excluding the requester). 0: the dashboard suggests inviting someone. Null if it is no longer pending and in listings (computed when it is requested and when it is fetched).
Example
{ "action": "security_policy_change", "status": "pending", "requestedSource": "panel"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}