POST api/Unit

Request Information

URI Parameters

None.

Body Parameters

AddorUpdateUnit
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

CreatedOn

date

None.

CreatedBy

integer

None.

UpdatedOn

date

None.

UpdatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "CreatedOn": "2021-09-26T21:18:21.0137301+05:30",
  "CreatedBy": 4,
  "UpdatedOn": "2021-09-26T21:18:21.0137301+05:30",
  "UpdatedBy": 6
}

text/html

Sample:
{"Id":1,"Name":"sample string 2","CreatedOn":"2021-09-26T21:18:21.0137301+05:30","CreatedBy":4,"UpdatedOn":"2021-09-26T21:18:21.0137301+05:30","UpdatedBy":6}

application/xml, text/xml

Sample:
<AddorUpdateUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.Unit">
  <CreatedBy>4</CreatedBy>
  <CreatedOn>2021-09-26T21:18:21.0137301+05:30</CreatedOn>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <UpdatedBy>6</UpdatedBy>
  <UpdatedOn>2021-09-26T21:18:21.0137301+05:30</UpdatedOn>
</AddorUpdateUnit>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />