POST api/role
Request Information
URI Parameters
None.
Body Parameters
RoleEntityName | Description | Type | Additional information |
---|---|---|---|
RoleId | integer |
None. |
|
Description | string |
None. |
|
IsCore | boolean |
None. |
|
CorporateId | integer |
None. |
|
Corporate | string |
None. |
|
Status | string |
None. |
|
CorporateRoleId | integer |
None. |
|
CorporatesIds | Collection of integer |
None. |
|
CreatedBy | string |
None. |
|
CreatedByUserId | integer |
None. |
|
CreatedOn | date |
None. |
|
ModifiedBy | string |
None. |
|
ModifiedByUserId | integer |
None. |
|
ModifiedOn | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "RoleId": 1, "Description": "sample string 2", "IsCore": true, "CorporateId": 1, "Corporate": "sample string 4", "Status": "sample string 5", "CorporateRoleId": 1, "CorporatesIds": [ 1, 2 ], "CreatedBy": "sample string 6", "CreatedByUserId": 7, "CreatedOn": "2024-12-14T22:47:56.0940763+00:00", "ModifiedBy": "sample string 9", "ModifiedByUserId": 10, "ModifiedOn": "2024-12-14T22:47:56.0940763+00:00" }
application/xml, text/xml
Sample:
<RoleEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Entities"> <CreatedBy>sample string 6</CreatedBy> <CreatedByUserId>7</CreatedByUserId> <CreatedOn>2024-12-14T22:47:56.0940763+00:00</CreatedOn> <ModifiedBy>sample string 9</ModifiedBy> <ModifiedByUserId>10</ModifiedByUserId> <ModifiedOn>2024-12-14T22:47:56.0940763+00:00</ModifiedOn> <Corporate>sample string 4</Corporate> <CorporateId>1</CorporateId> <CorporateRoleId>1</CorporateRoleId> <CorporatesIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </CorporatesIds> <Description>sample string 2</Description> <IsCore>true</IsCore> <RoleId>1</RoleId> <Status>sample string 5</Status> </RoleEntity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.