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": "0e0d9e6f-8f4c-4f72-9f93-be82fcc21f03",
"Email": "sample string 2",
"ID": "1035ad6f-ed14-433d-add3-7c4a2a0c0038",
"PendingInvitation": true,
"UserID": "5f130ceb-22a4-4f98-9401-024888267deb",
"UserList": [
{
"UserID": "bade1d60-b80b-420a-8079-288a5373f5d9",
"Email": "sample string 2"
},
{
"UserID": "bade1d60-b80b-420a-8079-288a5373f5d9",
"Email": "sample string 2"
}
],
"AssignRoleList": [
{
"RoleID": "e97f3479-d245-4e65-9171-220afe9d6e9d"
},
{
"RoleID": "e97f3479-d245-4e65-9171-220afe9d6e9d"
}
],
"LastApplicationAccessed": "83968f1d-2e78-4369-893c-f0e83a0af659",
"LastCompanyVisited": 5,
"CompanyID": 6,
"Language": "sample string 7",
"CreatedDate": "2026-11-05T09:40:22.3306384+00:00",
"CreatedUserID": "dc8129b6-a265-4199-94c2-b734e1a3d30c",
"ModifiedDate": "2026-11-05T09:40:22.3306384+00:00",
"ModifiedUserID": "4311988d-9f20-47a3-8e41-304f19b2dc94",
"FeatureID": "1bfc5329-0496-4fb5-9b25-1b1de3a280ff",
"Token": "16e211e7-3ff0-444d-93df-39184431e29b",
"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-11-05T09:40:22.3306384+00:00</CreatedDate>
<CreatedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">dc8129b6-a265-4199-94c2-b734e1a3d30c</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">1bfc5329-0496-4fb5-9b25-1b1de3a280ff</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-11-05T09:40:22.3306384+00:00</ModifiedDate>
<ModifiedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">4311988d-9f20-47a3-8e41-304f19b2dc94</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">16e211e7-3ff0-444d-93df-39184431e29b</Token>
<TotalRecords xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">17</TotalRecords>
<AssignRoleList>
<AssignRoleViewModel>
<RoleID>e97f3479-d245-4e65-9171-220afe9d6e9d</RoleID>
</AssignRoleViewModel>
<AssignRoleViewModel>
<RoleID>e97f3479-d245-4e65-9171-220afe9d6e9d</RoleID>
</AssignRoleViewModel>
</AssignRoleList>
<Email>sample string 2</Email>
<ID>1035ad6f-ed14-433d-add3-7c4a2a0c0038</ID>
<LastApplicationAccessed>83968f1d-2e78-4369-893c-f0e83a0af659</LastApplicationAccessed>
<LastCompanyVisited>5</LastCompanyVisited>
<PendingInvitation>true</PendingInvitation>
<RoleID>0e0d9e6f-8f4c-4f72-9f93-be82fcc21f03</RoleID>
<UserID>5f130ceb-22a4-4f98-9401-024888267deb</UserID>
<UserList>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>bade1d60-b80b-420a-8079-288a5373f5d9</UserID>
</AssignRoleUserViewModel>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>bade1d60-b80b-420a-8079-288a5373f5d9</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.