Piloterr
Referência da APICloud storage

Change a cloud connection

PATCH
/v1/cloud-connections/{id}

Only the fields sent change. New keys replace both: send access_key_id and secret_access_key together. Changing endpoint without path_style sets path-style back to its default.

Autorização

ApiKeyAuth
headerX-Api-Key<token>

Parâmetros de caminho

id*string

The cloud connection's id

Length1 <= length

Corpo da requisição

application/json
  1. body
name?string

Your name for the connection, up to 80 characters

Length1 <= length <= 80
endpoint?|

https origin of an S3-compatible store (R2, MinIO, SeaweedFS…); null or absent for AWS S3

Lengthlength <= 300
region?string

The bucket's region, such as us-east-1, or auto for Cloudflare R2

Match^[a-z0-9-]{2,40}$
bucket?string

The bucket's name: 3 to 63 lowercase letters, digits, dots and hyphens (S3's rules)

prefix?string

Folder for every file, such as exports/

Lengthlength <= 200
path_style?boolean

Path-style URLs (endpoint/bucket/key); default true with an endpoint

access_key_id?string

The access key id of a key that may write to the bucket; stored encrypted, only shown shortened (access_key_hint)

Length1 <= length <= 128
secret_access_key?string

Its secret access key; stored encrypted and never returned

Length1 <= length <= 256

Corpo da resposta

Saved

application/json
  1. response
id*string
type*"s3"
Value in"s3"
name*string
endpoint*|

null for AWS S3 itself

region*string
bucket*string
prefix*string
path_style*boolean
access_key_hint*string

The access key id, shortened

created_at*string
updated_at*string
Example Request
curl -X PATCH 'https://dataflow.piloterr.com/v1/cloud-connections/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "prefix": "exports/amazon/",
  "access_key_id": "AKIAIOSFODNN7EXAMPLE",
  "secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}'
Example Response
{
  "id": "cm4lb4q8n000hl208e9sf3vwm",
  "type": "s3",
  "name": "Exports bucket",
  "endpoint": null,
  "region": "eu-west-3",
  "bucket": "acme-dataflow",
  "prefix": "exports/amazon/",
  "path_style": false,
  "access_key_hint": "AKIA…MPLE",
  "created_at": "2026-11-09T08:00:00.000Z",
  "updated_at": "2026-11-09T08:00:00.000Z"
}