cURL
curl --request POST \ --url https://api.example.com/api/apps/{app_id}/encryption \ --header 'Content-Type: application/json' \ --data ' { "action": "add", "collections": [ "<string>" ], "private_app": true } '
Headers:
Request body:
Returns 402 Payment Required with payment requirements if X-PAYMENT not provided
Application ID
Request body for managing encryption settings
Action to perform on collections: "add" or "remove"
add
remove
Collection names to add/remove from private_collections
Enable/disable app-level encryption (all data encrypted)
Encryption settings updated successfully