Grant or Revoke Preferences for the Logged in User

post

/ic/api/process/v1/preferences

Grant or revoke user preferences and application preferences for the logged in user. You must be an administrator to grant or revoke application preferences

Request

Supported Media Types
Query Parameters
  • Operation - grant OR revoke. Default operation is grant
    Default Value: grant
Body ()
PreferenceRequest Object
Root Schema : preferencesResponse
Type: object
Show Source
Nested Schema : appPrefKeys
Type: array
Show Source
Nested Schema : appPrefReq
Type: object
Additional Properties Allowed
Show Source
Nested Schema : userPrefKeys
Type: array
Show Source
Nested Schema : userPrefReq
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: object
Nested Schema : additionalProperties
Type: object
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : preferencesResponse
Type: object
Show Source
Nested Schema : appPrefResponse
Type: object
Additional Properties Allowed
Show Source
Nested Schema : invalidUsers
Type: array
Show Source
Nested Schema : userPrefResponse
Type: object
Additional Properties Allowed
Show Source

400 Response

Bad request

401 Response

Unauthorized

500 Response

Internal Server Error
Back to Top

Examples

The following examples show how to set user and application preferences for the logged in user by submitting a POST request on the REST resource.

Example: Set user and application preferences for the logged in user

Send Request:

POST https://example.com/ic/api/process/v1/preferences

Request Body:

Start and end date must be in ISO-8601 format.


{
 "userPrefReq" : {
                "NOTIFICATION_TZ": "PST",
                "TASKLIST_FETCH_SIZE" : "50",
                "TASKLIST_DEFAULT_GROUPING" : "PROCESS_NAME",
                "VACATION_RULE": {
                        "targetUser" : "jcooper", 
                        "detail" : { "action":"DELEGATE", "startDate" : "2019-10-07", "endDate" : "2019-12-09"}
                                 }
                 },
 "appPrefReq" : {
                    "TASKLIST_FETCH_SIZE" : "50",
                    "TASKLIST_DEFAULT_GROUPING" : "PROCESS_NAME"
                }
}
Back to Top