POST SecuritySystemAPI/Cities/AddCity

Request Information

URI Parameters

None.

Body Parameters

CityInfo
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

Name

string

None.

CreatedBy

string

None.

CreatedDate

date

None.

UpdatedDate

date

None.

UpdatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "6dace2bf-6ef5-46eb-94c9-9b5a17583653",
  "Name": "sample string 2",
  "CreatedBy": "sample string 3",
  "CreatedDate": "2024-11-26T07:29:14.116897+03:00",
  "UpdatedDate": "2024-11-26T07:29:14.116897+03:00",
  "UpdatedBy": "sample string 6"
}

application/xml, text/xml

Sample:
<CityInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SecuritySystem.API.Model">
  <CreatedBy>sample string 3</CreatedBy>
  <CreatedDate>2024-11-26T07:29:14.116897+03:00</CreatedDate>
  <UpdatedBy>sample string 6</UpdatedBy>
  <UpdatedDate>2024-11-26T07:29:14.116897+03:00</UpdatedDate>
  <ID>6dace2bf-6ef5-46eb-94c9-9b5a17583653</ID>
  <Name>sample string 2</Name>
</CityInfo>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CityInfo'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>