PATCH api/Users/{userId}/Company/{companyId}/Roles
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId | integer |
Required |
|
companyId | integer |
Required |
Body Parameters
Collection of RoleName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Description | string |
None. |
|
Id | integer |
None. |
|
CreatedDate | date |
None. |
|
CreatedBy | string |
None. |
|
UpdateDate | date |
None. |
|
UpdatedBy | string |
None. |
|
IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[ { "Name": "sample string 1", "Description": "sample string 2", "Id": 3, "CreatedDate": "2024-09-18T20:33:29.3555715-06:00", "CreatedBy": "sample string 5", "UpdateDate": "2024-09-18T20:33:29.3555715-06:00", "UpdatedBy": "sample string 6", "IsActive": true }, { "Name": "sample string 1", "Description": "sample string 2", "Id": 3, "CreatedDate": "2024-09-18T20:33:29.3555715-06:00", "CreatedBy": "sample string 5", "UpdateDate": "2024-09-18T20:33:29.3555715-06:00", "UpdatedBy": "sample string 6", "IsActive": true } ]
application/xml, text/xml
Sample:
<ArrayOfRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLMLTEMA.MODELS"> <Role> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 5</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2024-09-18T20:33:29.3555715-06:00</CreatedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">3</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive> <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2024-09-18T20:33:29.3555715-06:00</UpdateDate> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 6</UpdatedBy> <Description xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 2</Description> <Name xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 1</Name> </Role> <Role> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 5</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2024-09-18T20:33:29.3555715-06:00</CreatedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">3</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">true</IsActive> <UpdateDate xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">2024-09-18T20:33:29.3555715-06:00</UpdateDate> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.PresentationEntities">sample string 6</UpdatedBy> <Description xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 2</Description> <Name xmlns="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.LocalEntities">sample string 1</Name> </Role> </ArrayOfRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |