Search documentation
karat

+

K

User Documentation ↗

Update Secrets For Connection

POST/api/v2/connectivity/connections/{connectionRid}/updateSecrets
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Updates the secrets on the connection to the specified secret values. Secrets that are currently configured on the connection but are omitted in the request will remain unchanged.

Secrets are transmitted over the network encrypted using TLS. Once the secrets reach Foundry's servers, they will be temporarily decrypted and remain in plaintext in memory to be processed as needed. They will stay in plaintext in memory until the garbage collection process cleans up the memory. The secrets are always stored encrypted on our servers.

By using this endpoint, you acknowledge and accept any potential risks associated with the temporary in-memory handling of secrets. If you do not want your secrets to be temporarily decrypted, you should use the Foundry UI instead.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:connectivity-connection-write.

Path parameters

connectionRid
string

The Resource Identifier (RID) of a Connection (also known as a source).

Query parameters

preview
boolean
optional

Enables the use of preview functionality.

Request body

UpdateSecretsForConnectionRequest
object
Hide child attributes

Hide child attributes

secrets
map<SecretName, PlaintextValue>
optional

The secrets to be updated. The specified secret names must already be configured on the connection.

Show child attributes

Show child attributes

Examples

Request

Copied!
1 2 3 4 5 curl -X POST \ -H "Content-type: application/json" \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/connectivity/connections/ri.magritte..source.c078b71b-92f9-41b6-b0df-3760f411120b/updateSecrets?preview=true" \ -d '{"secrets":{"Password":"MySecretPassword"}}'

Error responses

Error Name
UpdateSecretsForConnectionPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not updateSecrets the Connection.
ParametersconnectionRid