patch https://{app}.{filespin}.{io}/api/v1/user/settings/update?update_key=storage
Update storage by sending below payload. All keys are mandatory.
If you are using different S3 buckets for Originals, Derivatives and Transcodes, all the buckets must be in the same region. Please see Setup Custom S3 Bucket for details.
REQUEST PAYLOAD
{
"key": "storage",
"value": {
"originals_root": "MY-S3-BUCKET",
"originals_root_folder": "folder/path",
"derivatives_root": "MY-S3-BUCKET",
"derivatives_root_folder": "folder/path",
"transcodes_root": "MY-S3-BUCKET",
"transcodes_root_folder": "folder/path"
}
}
REQUEST JSON
Parameters | Type | Description |
---|---|---|
key | string | Set to storage |
value .originals_root | string | S3 storage bucket name for original asset files |
value .originals_root_folder | string | The path prefix for the object stored in the bucket |
value .derivatives_root | string | S3 storage bucket name for image conversions |
value .derivatives_root_folder | string | The path prefix for the object stored in the bucket |
value .transcodes_root | string | S3 storage bucket name for video transcodes |
value .transcodes_root_folder | string | The path prefix for the object stored in the bucket |