POST api/Role/CreateRole
Request Information
URI Parameters
None.
Body Parameters
RoleDtoName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Permission | string |
None. |
|
CreatedDate | date |
None. |
|
UpdatedDate | date |
None. |
|
FirmId | integer |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "Permission": "sample string 3", "CreatedDate": "2023-01-27T16:04:19.2196404+05:30", "UpdatedDate": "2023-01-27T16:04:19.2196404+05:30", "FirmId": 1, "IsDeleted": true }
application/xml, text/xml
Sample:
<RoleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto"> <CreatedDate>2023-01-27T16:04:19.2196404+05:30</CreatedDate> <FirmId>1</FirmId> <Id>1</Id> <IsDeleted>true</IsDeleted> <Name>sample string 2</Name> <Permission>sample string 3</Permission> <UpdatedDate>2023-01-27T16:04:19.2196404+05:30</UpdatedDate> </RoleDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseName | Description | Type | Additional information |
---|---|---|---|
Status | integer |
None. |
|
Message | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 1, "Message": "sample string 2", "Data": {} }
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto"> <Data /> <Message>sample string 2</Message> <Status>1</Status> </Response>