User Access
Grant or revoke admin, manager, and application access for user accounts.
Adds or removes access to one Skillhabit application for the user. action controls whether the selected application is added or removed. Supported applicationId values are achievements, analyse, create, learn, and follow-up.
Authorization
Bearer A JSON Web Token
In: header
Path Parameters
User id whose application access should be updated.
Access update action.
Value in
- "ADD"
- "REMOVE"
Request Body
application/json
Application access request.
TypeScript Definitions
Use the request body type in TypeScript.
Request to grant or revoke access to one Skillhabit application.
Response Body
application/json
curl -X POST "https://example.com/users/7f9c2a1e-4b8d-4f6a-9c2e-1d3b5a7e9c01/access/ADD" \ -H "Content-Type: application/json" \ -d '{}'Grants or revokes administrator rights for a user. Use endow=true to grant admin access and endow=false to revoke it.
Authorization
Bearer A JSON Web Token
In: header
Path Parameters
User id whose admin access should be updated.
true grants admin access; false revokes admin access.
Response Body
application/json
curl -X POST "https://example.com/users/7f9c2a1e-4b8d-4f6a-9c2e-1d3b5a7e9c01/make-admin/true"Grants or revokes manager rights for a user. Use endow=true to grant manager access and endow=false to revoke it.
Authorization
Bearer A JSON Web Token
In: header
Path Parameters
User id whose manager access should be updated.
true grants manager access; false revokes manager access.
Response Body
curl -X POST "https://example.com/users/7f9c2a1e-4b8d-4f6a-9c2e-1d3b5a7e9c01/make-manager/true"