Artboard
OttoFMS Settings

Add Offsite Remote

POST
/otto/api/settings/offsite/remotes

Request Body

POST /otto/api/settings/offsite/remotes Request body

application/json
  1. body
access_key_id?string
bucket_name?string

Used to validate access if ListBuckets permission is not set

endpoint*string
Length1 <= length
env_auth?boolean

Use environment variables for S3 authentication

Defaultfalse
noCheckBucket?boolean
Defaulttrue
rclone_flags?

Additional rclone configuration flags as key-value pairs. Reserved keys will be ignored.

region?string
remote_name*string

remote location name. this value will be slugified

Length1 <= length
remote_path?string

Used to validate access if ListBuckets permission is not set

secret_access_key?string

Response Body

POST /otto/api/settings/offsite/remotes Positive response

application/json
  1. response
messages*array<>
response*
Example Request
curl -X POST 'https://your.server.net/otto/api/settings/offsite/remotes' \  -H 'Content-Type: application/json' \  -d '{  "access_key_id": "AKIAIGMFG4BqweWD3T7Q",  "endpoint": "https://s3.us-east-1.amazonaws.com",  "env_auth": false,  "noCheckBucket": true,  "region": "us-east-1",  "remote_name": "remote_name_1",  "secret_access_key": "ewqewd3T7Q"}'
Example Response
{  "messages": [    {      "code": 0,      "text": "ok"    }  ],  "response": {}}

Was this page helpful?