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
- application/json
Query Parameters
-
operation(optional): string
Operation - grant OR revoke. Default operation is grantDefault Value:
grant
PreferenceBulkRequest Object
Nested Schema : additionalProperties
Type:
object
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : preferencesResponse
Type:
Show Source
object
-
appPrefResponse(optional):
object appPrefResponse
Additional Properties Allowed: additionalProperties
-
invalidUsers(optional):
array invalidUsers
-
levels(optional):
integer(int32)
-
links(optional):
array links
-
message(optional):
string
-
title(optional):
string
-
userPrefResponse(optional):
object userPrefResponse
Additional Properties Allowed: additionalProperties
400 Response
Bad request
401 Response
Unauthorized
500 Response
Internal Server Error
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"}
}
}
}