PUT api/UserRoleAPI/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
HotelUserRole| Name | Description | Type | Additional information |
|---|---|---|---|
| UserRoleId | integer |
None. |
|
| UserId | integer |
None. |
|
| RoleId | integer |
None. |
|
| IsSelected | boolean |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedBy | string |
None. |
|
| LastChangedDate | date |
None. |
|
| LastChangedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserRoleId": 1,
"UserId": 2,
"RoleId": 3,
"IsSelected": true,
"CreatedDate": "2026-04-02T12:52:03.0714975+05:45",
"CreatedBy": "sample string 6",
"LastChangedDate": "2026-04-02T12:52:03.0714975+05:45",
"LastChangedBy": "sample string 8"
}
application/xml, text/xml
Sample:
<HotelUserRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelDomain.Models"> <CreatedBy>sample string 6</CreatedBy> <CreatedDate>2026-04-02T12:52:03.0714975+05:45</CreatedDate> <IsSelected>true</IsSelected> <LastChangedBy>sample string 8</LastChangedBy> <LastChangedDate>2026-04-02T12:52:03.0714975+05:45</LastChangedDate> <RoleId>3</RoleId> <UserId>2</UserId> <UserRoleId>1</UserRoleId> </HotelUserRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |