Update encryption settings for an app (x402 payment flow)
POST /api/apps/:app_id/encryption
Encryption
Update encryption settings for an app (x402 payment flow) POST /api/apps/:app_id/encryption
Headers:
- X-PAYMENT: Base64-encoded payment proof (required if cost > 0)
Request body:
- private_app: bool (optional) - enable/disable app-level encryption
- action: “add” | “remove” (optional) - action for collection-level
- collections: [“col1”, “col2”] - collections to add/remove
Returns 402 Payment Required with payment requirements if X-PAYMENT not provided
POST
Update encryption settings for an app (x402 payment flow)
POST /api/apps/:app_id/encryption
Path Parameters
Application ID
Body
application/json
Request body for managing encryption settings
Response
Encryption settings updated successfully