Skip to main content

Enterprise: Update S3 Details Endpoint


This endpoint is used to update the S3 details on your dedicated server.


--request POST '' \

Send a POST request to endpoint. You have to pass the below listed request body parameters to update the S3 details.


You can use any S3 compatible service like Cloudflare R2, Digital Ocean Spaces, AWS S3, Google Cloud Storage, Alibaba OSS, Backblaze, etc.


You need to give PutObjectAcl on S3 bucket. Else you won't be able to upload images to S3 bucket. Here is link to stackoverflow on how to do it:


keyYour enterprise API Key used for request authorization.
public_urlA public URL on which images can be accessible. Make sure to make your bucket publicly accessible, so you can access the links.
region_nameS3 region name.
endpoint_urlS3 endpoint URL.
aws_access_key_idBucket's access key.
aws_secret_access_keyBucket's secret key.
image_directoryThe image directory inside the S3 bucket, where images will be stored. Create a directory named "generations" inside the bucket and make sure it is public, so you can access the images using their links.



Body Raw
"key": "enterprise_api_key",
"public_url": "",
"region_name": "us-east-1",
"endpoint_url": "",
"aws_access_key_id": "access-key",
"aws_secret_access_key": "secret-key",
"image_directory": "generations"


var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": "",
"public_url": "",
"region_name": "us-east-1",
"endpoint_url": "",
"aws_access_key_id": "access-key",
"aws_secret_access_key": "secret-key",
"image_directory": "generations"

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'

fetch("", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));


Make sure to give below permissions to your IAM user to upload images on S3 bucket.

"Version": "2012-10-17",
"Statement": [
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"Resource": [