POST api/role/AssignUserRole
Request Information
URI Parameters
None.
Body Parameters
UserViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleID | globally unique identifier |
None. |
|
| string |
None. |
||
| ID | globally unique identifier |
None. |
|
| PendingInvitation | boolean |
None. |
|
| UserID | globally unique identifier |
None. |
|
| UserList | Collection of AssignRoleUserViewModel |
None. |
|
| AssignRoleList | Collection of AssignRoleViewModel |
None. |
|
| LastApplicationAccessed | globally unique identifier |
None. |
|
| LastCompanyVisited | integer |
None. |
|
| CompanyID | integer |
None. |
|
| Language | string |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedUserID | globally unique identifier |
None. |
|
| ModifiedDate | date |
None. |
|
| ModifiedUserID | globally unique identifier |
None. |
|
| FeatureID | globally unique identifier |
None. |
|
| Token | globally unique identifier |
None. |
|
| Action | Actions |
None. |
|
| FilterText | string |
None. |
|
| CurrentIndex | integer |
None. |
|
| PageSize | integer |
None. |
|
| TotalRecords | integer |
None. |
|
| SortColumn | string |
None. |
|
| Sortby | SortDirection |
None. |
|
| ImageId | integer |
None. |
|
| IsDeleted | boolean |
None. |
|
| IsActive | boolean |
None. |
|
| Sort | integer |
None. |
|
| Messages | Collection of ErrorMessage |
None. |
Request Formats
application/json, text/json
Sample:
{
"RoleID": "2906ae17-3463-4d45-9db8-bd84f407cf11",
"Email": "sample string 2",
"ID": "d7ce0ebf-4a0b-4194-bed4-007d785a51cf",
"PendingInvitation": true,
"UserID": "95e5b9e9-292c-43dd-9df0-9cd473e1ccf5",
"UserList": [
{
"UserID": "ea45f151-8ff1-4080-affd-6340f05c927f",
"Email": "sample string 2"
},
{
"UserID": "ea45f151-8ff1-4080-affd-6340f05c927f",
"Email": "sample string 2"
}
],
"AssignRoleList": [
{
"RoleID": "b4f660b7-c2ad-4711-96d9-f81142c3a840"
},
{
"RoleID": "b4f660b7-c2ad-4711-96d9-f81142c3a840"
}
],
"LastApplicationAccessed": "b4dd2625-92f3-4b09-9272-451352c3be67",
"LastCompanyVisited": 5,
"CompanyID": 6,
"Language": "sample string 7",
"CreatedDate": "2026-07-04T13:31:11.9390491+00:00",
"CreatedUserID": "d362ec2e-0166-4225-8e0c-4d786f6ec149",
"ModifiedDate": "2026-07-04T13:31:11.9390491+00:00",
"ModifiedUserID": "9cef4888-816e-46dc-b3ee-16a337796773",
"FeatureID": "89f7046b-49bb-49b7-a0d2-998428899561",
"Token": "1772201a-2734-4b9e-94de-08b3f625b546",
"Action": 0,
"FilterText": "sample string 14",
"CurrentIndex": 15,
"PageSize": 16,
"TotalRecords": 17,
"SortColumn": "sample string 18",
"Sortby": 0,
"ImageId": 1,
"IsDeleted": true,
"IsActive": true,
"Sort": 1,
"Messages": [
{
"ErrorType": 1,
"Message": "sample string 2"
},
{
"ErrorType": 1,
"Message": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<UserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core.SecurityModels">
<Action xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">View</Action>
<CompanyID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">6</CompanyID>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">2026-07-04T13:31:11.9390491+00:00</CreatedDate>
<CreatedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">d362ec2e-0166-4225-8e0c-4d786f6ec149</CreatedUserID>
<CurrentIndex xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">15</CurrentIndex>
<FeatureID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">89f7046b-49bb-49b7-a0d2-998428899561</FeatureID>
<FilterText xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">sample string 14</FilterText>
<ImageId xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">1</ImageId>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">true</IsActive>
<IsDeleted xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">true</IsDeleted>
<Language xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">sample string 7</Language>
<Messages xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">
<ErrorMessage>
<ErrorType>1</ErrorType>
<Message>sample string 2</Message>
</ErrorMessage>
<ErrorMessage>
<ErrorType>1</ErrorType>
<Message>sample string 2</Message>
</ErrorMessage>
</Messages>
<ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">2026-07-04T13:31:11.9390491+00:00</ModifiedDate>
<ModifiedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">9cef4888-816e-46dc-b3ee-16a337796773</ModifiedUserID>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">16</PageSize>
<Sort xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">1</Sort>
<SortColumn xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">sample string 18</SortColumn>
<Sortby xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">Asc</Sortby>
<Token xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">1772201a-2734-4b9e-94de-08b3f625b546</Token>
<TotalRecords xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">17</TotalRecords>
<AssignRoleList>
<AssignRoleViewModel>
<RoleID>b4f660b7-c2ad-4711-96d9-f81142c3a840</RoleID>
</AssignRoleViewModel>
<AssignRoleViewModel>
<RoleID>b4f660b7-c2ad-4711-96d9-f81142c3a840</RoleID>
</AssignRoleViewModel>
</AssignRoleList>
<Email>sample string 2</Email>
<ID>d7ce0ebf-4a0b-4194-bed4-007d785a51cf</ID>
<LastApplicationAccessed>b4dd2625-92f3-4b09-9272-451352c3be67</LastApplicationAccessed>
<LastCompanyVisited>5</LastCompanyVisited>
<PendingInvitation>true</PendingInvitation>
<RoleID>2906ae17-3463-4d45-9db8-bd84f407cf11</RoleID>
<UserID>95e5b9e9-292c-43dd-9df0-9cd473e1ccf5</UserID>
<UserList>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>ea45f151-8ff1-4080-affd-6340f05c927f</UserID>
</AssignRoleUserViewModel>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>ea45f151-8ff1-4080-affd-6340f05c927f</UserID>
</AssignRoleUserViewModel>
</UserList>
</UserViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.