REST endpoints for managing app permissions
Parameter | Type | Description |
---|---|---|
packageName | string | The app’s package identifier (in URL) |
packages/cloud/src/routes/permissions.routes.ts:24-76
validateCoreToken
appStoreStatus === 'PUBLISHED'
)X-Org-Id
header)developerId
)Parameter | Type | Description |
---|---|---|
packageName | string | The app’s package identifier (in URL) |
packages/cloud/src/routes/permissions.routes.ts:83-155
PermissionType
enum from SDK@mentra/sdk
):
MICROPHONE
- Access to device microphoneLOCATION
- Access to device locationBACKGROUND_LOCATION
- Access to location in backgroundCALENDAR
- Access to device calendarCAMERA
- Access to device cameraNOTIFICATIONS
- Legacy notification permission (backward compatibility)READ_NOTIFICATIONS
- Access to read notificationsPOST_NOTIFICATIONS
- Access to post notificationsALL
- All available permissionstype
: One of the valid PermissionType
enum valuesdescription
: String explaining why the app needs this permission (optional but recommended)Code | Description |
---|---|
400 | Invalid permissions format or type |
401 | Unauthorized - invalid token |
403 | Forbidden - no permission to view/modify app |
404 | App not found |
500 | Internal server error |
PermissionType
enumX-Org-Id
headerfindOneAndUpdate
to ensure atomic updates