Skip to content

Set Legal Hold

PUT
/api/v1/object/legal-hold
curl --request PUT \
--url 'https://example.com/api/v1/object/legal-hold?key=example&bucket=example' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'
key
required
Key
string
bucket
required
Bucket
string
Media typeapplication/json
SetLegalHoldRequest
object
enabled
required
Enabled
boolean
Examplegenerated
{
"enabled": true
}

Successful Response

Media typeapplication/json
SetLegalHoldResponse
object
legal_hold
required
Legal Hold
boolean
Examplegenerated
{
"legal_hold": true
}

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": {}
}
]
}