ApiVolumes
POST /v1/volumes/{v}/source
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
v*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A bucket to connect. Amazon S3, Google Cloud Storage and Tigris fill the endpoint; Cloudflare R2 takes the account endpoint; custom takes any https S3 endpoint.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/volumes/string/source" \ -H "Content-Type: application/json" \ -d '{ "provider": "aws", "bucket": "string", "access_key_id": "string", "secret_access_key": "string" }'{ "id": "string", "provider": "aws", "endpoint": "string", "region": "string", "bucket": "string", "prefix": "string", "state": "importing", "error": { "code": "string", "message": "string" }, "last_import_at": "string", "last_export_at": "string", "created_at": "string", "last_run": { "id": "string", "direction": "import", "state": "queued", "created_at": "string", "started_at": "string", "finished_at": "string", "copied": 0, "copied_bytes": 0, "unchanged": 0, "skipped": 0, "conflicts": 0, "failed": 0, "problems": [ { "path": "string", "reason": "string" } ], "error": { "code": "string", "message": "string" } }}{ "error": "string", "code": "string", "limit": "string", "max": 0, "used": 0, "requested": 0, "reason": "string"}Empty
{ "error": "string", "code": "string", "limit": "string", "max": 0, "used": 0, "requested": 0, "reason": "string"}{ "error": "string", "code": "string", "limit": "string", "max": 0, "used": 0, "requested": 0, "reason": "string"}{ "error": "string", "code": "string", "limit": "string", "max": 0, "used": 0, "requested": 0, "reason": "string"}