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": "86f1db63-1a38-4454-a88f-bc9faf5a8451",
"Email": "sample string 2",
"ID": "562f9b66-5dd8-4672-944e-fa460a0a3b4a",
"PendingInvitation": true,
"UserID": "bc8919ba-a5e1-4ea4-a10a-30faba70f1a0",
"UserList": [
{
"UserID": "0940c4c3-a6ba-434c-88a7-89668cb7fd1f",
"Email": "sample string 2"
},
{
"UserID": "0940c4c3-a6ba-434c-88a7-89668cb7fd1f",
"Email": "sample string 2"
}
],
"AssignRoleList": [
{
"RoleID": "5bac03f9-44c1-43bb-94e3-afebef21c703"
},
{
"RoleID": "5bac03f9-44c1-43bb-94e3-afebef21c703"
}
],
"LastApplicationAccessed": "899dea2d-c744-4ce8-8fc0-4339c7ee9288",
"LastCompanyVisited": 5,
"CompanyID": 6,
"Language": "sample string 7",
"CreatedDate": "2026-10-27T09:38:49.9810236+00:00",
"CreatedUserID": "b343dc22-820a-4d39-8c9f-f51ab01027ad",
"ModifiedDate": "2026-10-27T09:38:49.9810236+00:00",
"ModifiedUserID": "8112e3f3-fa54-4504-ab96-28f796b281fa",
"FeatureID": "fadc57ce-dd90-422a-8a7c-d17f4e16c235",
"Token": "694b1f00-3e81-40dc-9eed-0b6eb9409e5f",
"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-10-27T09:38:49.9810236+00:00</CreatedDate>
<CreatedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">b343dc22-820a-4d39-8c9f-f51ab01027ad</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">fadc57ce-dd90-422a-8a7c-d17f4e16c235</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-10-27T09:38:49.9810236+00:00</ModifiedDate>
<ModifiedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">8112e3f3-fa54-4504-ab96-28f796b281fa</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">694b1f00-3e81-40dc-9eed-0b6eb9409e5f</Token>
<TotalRecords xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">17</TotalRecords>
<AssignRoleList>
<AssignRoleViewModel>
<RoleID>5bac03f9-44c1-43bb-94e3-afebef21c703</RoleID>
</AssignRoleViewModel>
<AssignRoleViewModel>
<RoleID>5bac03f9-44c1-43bb-94e3-afebef21c703</RoleID>
</AssignRoleViewModel>
</AssignRoleList>
<Email>sample string 2</Email>
<ID>562f9b66-5dd8-4672-944e-fa460a0a3b4a</ID>
<LastApplicationAccessed>899dea2d-c744-4ce8-8fc0-4339c7ee9288</LastApplicationAccessed>
<LastCompanyVisited>5</LastCompanyVisited>
<PendingInvitation>true</PendingInvitation>
<RoleID>86f1db63-1a38-4454-a88f-bc9faf5a8451</RoleID>
<UserID>bc8919ba-a5e1-4ea4-a10a-30faba70f1a0</UserID>
<UserList>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>0940c4c3-a6ba-434c-88a7-89668cb7fd1f</UserID>
</AssignRoleUserViewModel>
<AssignRoleUserViewModel>
<Email>sample string 2</Email>
<UserID>0940c4c3-a6ba-434c-88a7-89668cb7fd1f</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.