POST api/upsert-role
Request Information
URI Parameters
None.
Body Parameters
RolesModelName | Description | Type | Additional information |
---|---|---|---|
RoleId | integer |
None. |
|
RoleName | string |
None. |
|
CreatedBy | integer |
None. |
|
ModifiedBy | integer |
None. |
|
DeletedBy | integer |
None. |
|
CreatedDate | date |
None. |
|
ModifiedDate | date |
None. |
|
StartIndex | integer |
None. |
|
GridSize | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "RoleId": 1, "RoleName": "sample string 1", "CreatedBy": 1, "ModifiedBy": 1, "DeletedBy": 1, "CreatedDate": "2024-11-26T18:19:12.4960573+05:30", "ModifiedDate": "2024-11-26T18:19:12.4960573+05:30", "StartIndex": 1, "GridSize": 1 }
application/xml, text/xml
Sample:
<RolesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.AdminModels"> <GridSize xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">1</GridSize> <StartIndex xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">1</StartIndex> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">1</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">2024-11-26T18:19:12.4960573+05:30</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">1</DeletedBy> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">1</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Sonalika_Api.CustomModels.Generic">2024-11-26T18:19:12.4960573+05:30</ModifiedDate> <RoleId>1</RoleId> <RoleName>sample string 1</RoleName> </RolesModel>
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. |