Grant or Revoke Preferences for Users

put

/ic/api/process/v1/preferences/bulk

Grant or revoke preferences for one or more users. You must be an administrator to use this API.

Request

Supported Media Types
Query Parameters
Body ()
PreferenceBulkRequest Object
Root Schema : preferencesResponse
Type: object
Show Source
Nested Schema : userPrefKeys
Type: array
Show Source
Nested Schema : userPrefReq
Type: object
Additional Properties Allowed
Show Source
Nested Schema : users
Type: array
Show Source
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 or update user preferences for multiple users by submitting a PUT request on the REST resource.

Example: Set the notification time zone and task list size for users dsmith, jlondon, jcooper

Send Request:

PUT https://example.com/ic/api/process/v1/preferences/bulk

Request Body:

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

{
   "users" : ["dsmith","jlondon", "jcooper"],
   "userPrefReq" : { "NOTIFICATION_TZ": "Hongkong" , "TASKLIST_FETCH_SIZE" : "50"}
}

Example: Delegate tasks to user jcooper when users htwain, jlondon, dsmith are on vacation

Send Request:

PUT https://example.com/ic/api/process/v1/preferences/bulk

Request Body:

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


{
   "users" : ["htwain","jlondon", "dsmith"],
   "userPrefReq" : { "VACATION_RULE": {
                            "targetUser" : "jcooper",
                            "detail" : { "action":"DELEGATE", "startDate" : "2019-10-07", "endDate" : "2019-12-09"}
                                      }
                    }
}
Back to Top