BucketsCorsSet
Apply CORS rules to a bucket
Request Body
application/json
endpoint*string
S3-compatible endpoint URL or host
region*string
access_key_id*string
secret_key*string
bucket*string
rules*array<>
Response Body
application/json
curl -X POST "https://athena-cluster.com/storage/buckets/cors/set" \ -H "Content-Type: application/json" \ -d '{ "endpoint": "string", "region": "string", "access_key_id": "string", "secret_key": "string", "bucket": "string", "rules": [ { "allowed_origins": [ "string" ], "allowed_methods": [ "string" ] } ] }'Empty
Empty
{
"status": "error",
"message": "string",
"error": "string"
}