PUT /accounts/{accountId}/permissions
put
https://trading-gateway-api.prod.thinkalpha.io/accounts/{accountId}/permissions- Authentication
- Bearer token or Client credentials (HTTP Basic)
Path parameters
- accountId string required
The ID of the account to update permissions for.
Request body application/json required
Strict client-facing permissions object from `client/contracts/permissions.ts`. The shared `thinkalpha_auth::Permissions` type accepts missing rows as empty because storage/service helpers need that legacy behavior. The public client Zod schema requires all four rows, so this wrapper preserves the client contract without weakening the common runtime type.
- PermissionDirective[] required
- PermissionDirective[] required
- PermissionDirective[] nullable required
- PermissionDirective[] required
Responses
- PermissionDirective[] required
- canAdmin boolean required
- canRead boolean required
- canWrite boolean required
- doesOwn boolean required
- effectiveAccess PermissionType required
- effectiveDirectAccess PermissionType nullable required
- isDirectAccessComplex boolean required
- isShared boolean required
- PermissionDirective[] required
- PermissionDirective[] nullable required
- PermissionDirective[] required