Batch Create Resource Role Assignments
post
/primeapi/restapi/resourceRoleAssignment/batch
Send a request to this endpoint to create one or more resource role assignments.
Request
Supported Media Types
- application/json
One or more resource role assignment objects.
Root Schema : List<ApiEntityResourceRoleAssignment>
Type:
array
Title:
Show Source
List<ApiEntityResourceRoleAssignment>
Nested Schema : ApiEntityResourceRoleAssignment
Type:
Show Source
object
-
link(optional):
string(url)
Read Only:
true
-
primaryFlag(optional):
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(optional):
string
Allowed Values:
[ "ONE", "TWO", "THREE", "FOUR", "FIVE" ]
The skill level of the resource.
Skill levels are Master, Expert, Skilled, Proficient, and Inexperienced. -
resourceId(optional):
integer(int64)
The unique identifier for the resource or role.
-
resourceRoleAssignmentId(optional):
integer(int64)
The identifier for the resource.
-
roleCode(optional):
string
The unique identifier for the resource or role.
-
roleId(optional):
integer(int64)
The unique identifier for the resource or role.
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response.
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Nested Schema : ApiEntityResourceRoleAssignment
Type:
Show Source
object
-
link(optional):
string(url)
Read Only:
true
-
primaryFlag(optional):
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(optional):
string
Allowed Values:
[ "ONE", "TWO", "THREE", "FOUR", "FIVE" ]
The skill level of the resource.
Skill levels are Master, Expert, Skilled, Proficient, and Inexperienced. -
resourceId(optional):
integer(int64)
The unique identifier for the resource or role.
-
resourceRoleAssignmentId(optional):
integer(int64)
The identifier for the resource.
-
roleCode(optional):
string
The unique identifier for the resource or role.
-
roleId(optional):
integer(int64)
The unique identifier for the resource or role.
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response.
400 Response
Invalid input for the Resource Role Assignment service.