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": "39c54972-723c-4740-8409-cc9148083474",
"Email": "sample string 2",
"ID": "204a4f6d-e3ff-4d81-a669-bd2503a3e03f",
"PendingInvitation": true,
"UserID": "c59c45f0-fdda-4ebe-b97c-62589dba0fbd",
"UserList": [
{
"UserID": "5181e042-bd98-4fce-b18a-d63685527c67",
"Email": "sample string 2"
},
{
"UserID": "5181e042-bd98-4fce-b18a-d63685527c67",
"Email": "sample string 2"
}
],
"AssignRoleList": [
{
"RoleID": "f2b47390-f52b-4e88-acd3-4c98565307b6"
},
{
"RoleID": "f2b47390-f52b-4e88-acd3-4c98565307b6"
}
],
"LastApplicationAccessed": "0774df3a-41c2-4f00-8b0c-57704374cd3e",
"LastCompanyVisited": 5,
"CompanyID": 6,
"Language": "sample string 7",
"CreatedDate": "2026-06-20T19:50:40.8208524+00:00",
"CreatedUserID": "f96a924d-4431-4f81-a9c3-e50c699f80f3",
"ModifiedDate": "2026-06-20T19:50:40.8208524+00:00",
"ModifiedUserID": "11665e76-6b0d-4178-848b-ba8150830e1b",
"FeatureID": "6ac9063f-f57f-42fa-9ada-8efb40c06672",
"Token": "a7ff4fd8-6144-40be-be98-794f9bd951c6",
"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-06-20T19:50:40.8208524+00:00</CreatedDate>
<CreatedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">f96a924d-4431-4f81-a9c3-e50c699f80f3</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">6ac9063f-f57f-42fa-9ada-8efb40c06672</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-06-20T19:50:40.8208524+00:00</ModifiedDate>
<ModifiedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">11665e76-6b0d-4178-848b-ba8150830e1b</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">a7ff4fd8-6144-40be-be98-794f9bd951c6</Token>
<TotalRecords xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">17</TotalRecords>
<AssignRoleList>
<AssignRoleViewModel>
<RoleID>f2b47390-f52b-4e88-acd3-4c98565307b6</RoleID>
</AssignRoleViewModel>
<AssignRoleViewModel>
<RoleID>f2b47390-f52b-4e88-acd3-4c98565307b6</RoleID>
</AssignRoleViewModel>
</AssignRoleList>
<Email>sample string 2</Email>
<ID>204a4f6d-e3ff-4d81-a669-bd2503a3e03f</ID>
<LastApplicationAccessed>0774df3a-41c2-4f00-8b0c-57704374cd3e</LastApplicationAccessed>
<LastCompanyVisited>5</LastCompanyVisited>
<PendingInvitation>true</PendingInvitation>
<RoleID>39c54972-723c-4740-8409-cc9148083474</RoleID>
<UserID>c59c45f0-fdda-4ebe-b97c-62589dba0fbd</UserID>
<UserList>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>5181e042-bd98-4fce-b18a-d63685527c67</UserID>
</AssignRoleUserViewModel>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>5181e042-bd98-4fce-b18a-d63685527c67</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.