Skip to content

Set Encryption

PUT
/api/v1/buckets/{bucket}/encryption
curl --request PUT \
--url https://example.com/api/v1/buckets/example/encryption \
--header 'Content-Type: application/json' \
--data '{ "encryption": { "algorithm": "AES256", "kms_key_id": "example" } }'
bucket
required
Bucket
string
Media typeapplication/json
SetEncryptionRequest
object
encryption
required
Any of:
EncryptionConfigModel
object
algorithm
required
Algorithm
string
Allowed values: AES256 aws:kms
kms_key_id
Any of:
string

Successful Response

Media typeapplication/json
Any of:
EncryptionConfigModel
object
algorithm
required
Algorithm
string
Allowed values: AES256 aws:kms
kms_key_id
Any of:
string
Example
{
"algorithm": "AES256"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}