Skip to main content

Update a storage connection

PUT 

/program/api/v2/storage/connections/:connectionID

Updates a storage connection. Every field is optional; an omitted field is left as it is. Supplying either credential replaces the Vault entry.

The connection is re-verified on every update, so an update that would break it is refused exactly as a failing create is, with the same four 400 error codes: connection_invalid_credentials, connection_bucket_not_found, connection_endpoint_mismatch and connection_unreachable. Nothing is written when verification fails — the previous, working configuration survives.

Re-verification cannot detect lost write access either: it only lists. Credentials downgraded to list-only keep their current readOnly until an upload through a feature bound to this connection fails with 403 connection_read_only, naming the missing s3:PutObject permission, which sets readOnly to true. Saving new credentials that pass verification resets it to false.

Renaming to a name already used in the project is refused with 409 connection_name_in_use.

Error codes (errorCode in the error body):

  • 409 connection_credentials_missing — the change needs the connection's keys sent again.
Generate JWT

Request​

Responses​

Connection updated and re-verified

Validation failure, or the updated connection failed verification (connection_invalid_credentials / connection_bucket_not_found / connection_endpoint_mismatch / connection_unreachable). Nothing is written.

Forbidden — no project access

Connection not found (connection_not_found) — including a connection that belongs to another project, which is deliberately indistinguishable from one that does not exist.

A connection with this name already exists in the project (connection_name_in_use)

Internal Server Error