Batch Update Resource Role Assignments
put
/api/restapi/resourceRoleAssignment/batch
Send a request to this endpoint to update one or more resource role assignments.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityResourceRoleAssignmentInput>
Type:
array
Title:
Show Source
List<ApiEntityResourceRoleAssignmentInput>
-
Array of:
object ApiEntityResourceRoleAssignmentInput
Title:
ApiEntityResourceRoleAssignmentInput
This entity represents a ResourceRoleAssignment object, a unique ResourceRoleAssignment object can be identified by the following combinations of the fields.- resourceRoleAssignmentId
- resourceId,roleId
- resourceCode,workspaceCode,roleId
- resourceId,workspaceCode,roleCode
- resourceCode,workspaceCode,roleCode
Nested Schema : ApiEntityResourceRoleAssignmentInput
Type:
object
Title:
ApiEntityResourceRoleAssignmentInput
This entity represents a ResourceRoleAssignment object, a unique ResourceRoleAssignment object can be identified by the following combinations of the fields.
Show Source
- resourceRoleAssignmentId
- resourceId,roleId
- resourceCode,workspaceCode,roleId
- resourceId,workspaceCode,roleCode
- resourceCode,workspaceCode,roleCode
-
link: string(url)Read Only:true
Deprecated. As of 23.10.The self-link to the object. This field is populated only in the responses generated by the batch create APIs. -
primaryFlag: boolean
Determines whether this is the resource's main role. A role that does not have this option selected indicates that this is a secondary role for the resource. You can only assign one primary role per resource. A resource is not required to have a primary role.
-
proficiency: string
Allowed Values:
[ "ONE", "TWO", "THREE", "FOUR", "FIVE" ]
The skill level of the resource.
Skill levels are Master, Expert, Skilled, Proficient, and Inexperienced. -
projectCode: string
Maximum Length:
60
The unique identifier for a project set by the user who created the project. -
projectId: integer
(int64)
The unique identifier for the project.
-
resourceCode: string
Minimum Length:
1
Maximum Length:60
The unique identifier for the resource or role. -
resourceId(required): integer
(int64)
The unique identifier for the resource.The resource object can also be identified by its unique criteria.
-
resourceRoleAssignmentId: integer
(int64)
The system-generated identifier of the resource role assignment.
-
roleCode: string
Minimum Length:
1
Maximum Length:60
The user-specified identifier of the role. -
roleId(required): integer
(int64)
The unique identifier for the role.The role object can also be identified by its unique criteria.
-
updateDate: string(date-time)Read Only:true
Deprecated. As of 23.10.Date when the record was last updated. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace.
Examples
Back to Top
Response
200 Response
A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"}}
400 Response
Invalid input for the Resource Role Assignment service.