Release an account legal hold.
POST
/api/admin/users/{id}/legal-holds/{holdId}/release
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/users/example/legal-holds/example/release \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "expected_version": 1, "reason_code": "example" }'Performs the audited active-to-released transition using an expected hold version and enqueues the next monotonic Control projection.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
holdId
required
string
Header Parameters
Section titled “Header Parameters ” X-Tenant-Id
string
Tenant selector for multi-tenant admin requests.
Idempotency-Key
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
expected_version
required
integer
reason_code
required
string
key
additional properties
Example generated
{ "expected_version": 1, "reason_code": "example"}Responses
Section titled “ Responses ”Released legal hold.
Media type application/json
object
id
required
string
subject_type
required
string
account_id
required
string
state
required
string
reason_code
required
string
case_reference
required
string | null
expires_at
required
Unix epoch milliseconds; null means no automatic expiry.
integer | null
version
required
integer
created_by
required
string
created_at
required
integer
released_by
required
string | null
released_at
required
integer | null
release_reason
required
string | null
updated_at
required
integer
key
additional properties
Example
{ "subject_type": "account", "state": "active"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}