POST api/role/AssignUserRole
Request Information
URI Parameters
None.
Body Parameters
UserViewModelName | 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": "476b0c2c-be0e-4462-ab4a-0317f3a0426e", "Email": "sample string 2", "ID": "c665e9fc-062e-4930-bd95-a77c1ea9e340", "PendingInvitation": true, "UserID": "f0cfa99d-fc51-4d90-aa08-9f9f1fc7fc99", "UserList": [ { "UserID": "5d6341eb-82de-4349-ac43-c90717f50692", "Email": "sample string 2" }, { "UserID": "5d6341eb-82de-4349-ac43-c90717f50692", "Email": "sample string 2" } ], "AssignRoleList": [ { "RoleID": "7698fe87-eb2b-4ed4-a5aa-55bd77643eac" }, { "RoleID": "7698fe87-eb2b-4ed4-a5aa-55bd77643eac" } ], "LastApplicationAccessed": "2852878a-285c-406f-a59f-b5a06dcadae3", "LastCompanyVisited": 5, "CompanyID": 6, "Language": "sample string 7", "CreatedDate": "2025-08-29T01:02:51.7834042+00:00", "CreatedUserID": "2950297a-c2af-4a49-aae4-295f0e809347", "ModifiedDate": "2025-08-29T01:02:51.7834042+00:00", "ModifiedUserID": "15c6a0e5-6fb5-40da-8c86-609fbd3da8ab", "FeatureID": "0fb022d3-fdc5-4e08-afa7-15176bbee467", "Token": "12e19be7-8a0d-4743-a879-ef7a93b1045f", "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">2025-08-29T01:02:51.7834042+00:00</CreatedDate> <CreatedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">2950297a-c2af-4a49-aae4-295f0e809347</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">0fb022d3-fdc5-4e08-afa7-15176bbee467</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">2025-08-29T01:02:51.7834042+00:00</ModifiedDate> <ModifiedUserID xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">15c6a0e5-6fb5-40da-8c86-609fbd3da8ab</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">12e19be7-8a0d-4743-a879-ef7a93b1045f</Token> <TotalRecords xmlns="http://schemas.datacontract.org/2004/07/ArtSolutions.ReqStudio.Core">17</TotalRecords> <AssignRoleList> <AssignRoleViewModel> <RoleID>7698fe87-eb2b-4ed4-a5aa-55bd77643eac</RoleID> </AssignRoleViewModel> <AssignRoleViewModel> <RoleID>7698fe87-eb2b-4ed4-a5aa-55bd77643eac</RoleID> </AssignRoleViewModel> </AssignRoleList> <Email>sample string 2</Email> <ID>c665e9fc-062e-4930-bd95-a77c1ea9e340</ID> <LastApplicationAccessed>2852878a-285c-406f-a59f-b5a06dcadae3</LastApplicationAccessed> <LastCompanyVisited>5</LastCompanyVisited> <PendingInvitation>true</PendingInvitation> <RoleID>476b0c2c-be0e-4462-ab4a-0317f3a0426e</RoleID> <UserID>f0cfa99d-fc51-4d90-aa08-9f9f1fc7fc99</UserID> <UserList> <AssignRoleUserViewModel> <Email>sample string 2</Email> <UserID>5d6341eb-82de-4349-ac43-c90717f50692</UserID> </AssignRoleUserViewModel> <AssignRoleUserViewModel> <Email>sample string 2</Email> <UserID>5d6341eb-82de-4349-ac43-c90717f50692</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.