PUT api/RoleNameAPI/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
HotelRole| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleName | string |
None. |
|
| Description | string |
None. |
|
| PermissionList | string |
None. |
|
| Selected | boolean |
None. |
|
| IsAdd | boolean |
None. |
|
| IsEdit | boolean |
None. |
|
| IsDelete | boolean |
None. |
|
| IsView | boolean |
None. |
|
| CreatedOn | date |
None. |
|
| CreatedBy | string |
None. |
|
| LastChangedDate | date |
None. |
|
| LastChangedBy | string |
None. |
|
| IsSysAdmin | boolean |
None. |
|
| Users | Collection of IdentityUserRole |
None. |
|
| Id | string |
None. |
|
| Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"RoleName": "sample string 1",
"Description": "sample string 2",
"PermissionList": "sample string 3",
"Selected": true,
"IsAdd": true,
"IsEdit": true,
"IsDelete": true,
"IsView": true,
"CreatedOn": "2026-04-02T12:52:16.3530994+05:45",
"CreatedBy": "sample string 5",
"LastChangedDate": "2026-04-02T12:52:16.3530994+05:45",
"LastChangedBy": "sample string 6",
"IsSysAdmin": true,
"Users": [],
"Id": "sample string 8",
"Name": "sample string 9"
}
application/xml, text/xml
Sample:
<HotelRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelDomain.Models"> <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</Id> <Name xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 9</Name> <CreatedBy>sample string 5</CreatedBy> <CreatedOn>2026-04-02T12:52:16.3530994+05:45</CreatedOn> <Description>sample string 2</Description> <IsAdd>true</IsAdd> <IsDelete>true</IsDelete> <IsEdit>true</IsEdit> <IsSysAdmin>true</IsSysAdmin> <IsView>true</IsView> <LastChangedBy>sample string 6</LastChangedBy> <LastChangedDate>2026-04-02T12:52:16.3530994+05:45</LastChangedDate> <PermissionList>sample string 3</PermissionList> <RoleName>sample string 1</RoleName> <Selected>true</Selected> </HotelRole>
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. |