User Functionality management API
The User Functionality Management API (version 1.0.0).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL http://localhost:9763/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
user functionality management
This REST API handles user functionality management. A functionality can be locked or unlocked for particular users via this API.
Get the lock status of a functionality for an authenticated user
GET /me/user-functionality/{function-id}
Get the status of a functionality for the authenticated user.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
function-id | path | string | Yes | FunctionalityIdentifier. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | LockStatusResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Lock or unlock a function for authenticated user
PUT /me/user-functionality/{function-id}
This API is used to lock or unlock a function for the authenticated user.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
function-id | path | string | Yes | FunctionalityIdentifier. |
Request body: application/json
Schema: UserStatusChangeRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
action | string | Yes | LOCK/UNLOCK Allowed values: |
timeToLock | string | Time in millisecond |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The function is successfully locked. | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Get the lock status of a functionality for a user
GET /{user-id}/user-functionality/{function-id}
Get the status of a functionality for a particular user.
Scope(Permission) required: internal_user_fucntionality_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
function-id | path | string | Yes | FunctionalityIdentifier. |
user-id | path | string | Yes | UserID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | LockStatusResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Lock or unlock a function for a user
PUT /{user-id}/user-functionality/{function-id}
This API is used to lock or unlock a function for a particular user.
Scope(Permission) required: internal_user_fucntionality_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
function-id | path | string | Yes | FunctionalityIdentifier. |
user-id | path | string | Yes | UserID. |
Request body: application/json
Schema: StatusChangeRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
action | string | Yes | LOCK/UNLOCK Allowed values: |
timeToLock | string | Time in millisecond | |
functionalityLockReason | string | ||
functionalityLockReasonCode | string |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The function is successfully locked. | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Schemas
StatusChangeRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
action | string | Yes | LOCK/UNLOCK Allowed values: |
timeToLock | string | Time in millisecond | |
functionalityLockReason | string | ||
functionalityLockReasonCode | string |
LockStatusResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
lockStatus | boolean | returns true if it is locked | |
unlockTime | string | ||
lockReasonCode | string | ||
lockReason | string |
UserStatusChangeRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
action | string | Yes | LOCK/UNLOCK Allowed values: |
timeToLock | string | Time in millisecond |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?