Skip to main content
POST
/
v1
/
teams
/
{team_id}
/
locations
Create Location
curl --request POST \
  --url https://api.dataraven.io/v1/teams/{team_id}/locations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "location_type": "s3",
  "secret_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "bucket_name": "<string>",
  "description": "<string>",
  "region": "<string>",
  "endpoint_url": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "location_type": "s3",
  "bucket_name": "<string>",
  "region": "<string>",
  "endpoint_url": "<string>",
  "last_verified_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "secret_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "usage_stats": {
    "tasks_as_source": 123,
    "tasks_as_destination": 123
  },
  "secret_name": "<string>",
  "tasks_as_source": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "tasks_as_destination": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string<uuid>
required

Body

application/json

Schema for creating a new cloud storage location.

Locations define cloud storage endpoints (buckets/containers) that can be used as sources or destinations in data transfer tasks. RClone configuration options are set at the Task level, not here.

name
string
required

Location name

Required string length: 1 - 255
location_type
enum<string>
required

Cloud provider type

Available options:
s3,
azure_blob,
gcs,
r2,
b2,
wasabi,
railway,
oracle_object_storage_s3,
s3_compatible
secret_id
string<uuid>
required

ID of the secret containing credentials

bucket_name
string
required

Bucket/container name

Required string length: 1 - 255
description
string | null

Optional description

Maximum string length: 2000
region
string | null

Cloud provider region

Maximum string length: 100
endpoint_url
string | null

Custom endpoint URL (for S3-compatible providers)

Maximum string length: 2048

Response

Successful Response

Schema for detailed location information.

id
string<uuid>
required
name
string
required
description
string | null
required
location_type
enum<string>
required

Cloud storage provider types.

Available options:
s3,
azure_blob,
gcs,
r2,
b2,
wasabi,
railway,
oracle_object_storage_s3,
s3_compatible
bucket_name
string
required
region
string | null
required
endpoint_url
string | null
required
last_verified_at
string<date-time> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
secret_id
string<uuid>
required
usage_stats
LocationUsageStats · object
required

Statistics about location usage in tasks.

secret_name
string | null

Name of the linked secret

tasks_as_source
LinkedTask · object[]

Tasks using this location as source

tasks_as_destination
LinkedTask · object[]

Tasks using this location as destination