POST api/cities
Request Information
URI Parameters
None.
Body Parameters
CityModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| State | StateModel |
None. |
|
| AuthorId | integer |
None. |
|
| Author | string |
None. |
|
| Created | date |
None. |
|
| EditorId | integer |
None. |
|
| Editor | string |
None. |
|
| Modified | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"State": {
"Id": 1,
"Name": "sample string 2",
"Country": {
"Id": 1,
"Name": "sample string 2",
"AuthorId": 3,
"Author": "sample string 4",
"Created": "2026-03-09T17:06:57.95266-03:00",
"EditorId": 5,
"Editor": "sample string 6",
"Modified": "2026-03-09T17:06:57.95266-03:00"
},
"AuthorId": 3,
"Author": "sample string 4",
"Created": "2026-03-09T17:06:57.95266-03:00",
"EditorId": 5,
"Editor": "sample string 6",
"Modified": "2026-03-09T17:06:57.95266-03:00"
},
"AuthorId": 3,
"Author": "sample string 4",
"Created": "2026-03-09T17:06:57.95266-03:00",
"EditorId": 5,
"Editor": "sample string 6",
"Modified": "2026-03-09T17:06:57.95266-03:00"
}
application/xml, text/xml
Sample:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inpartec.Vale.AgendaDE.Model">
<Author>sample string 4</Author>
<AuthorId>3</AuthorId>
<Created>2026-03-09T17:06:57.95266-03:00</Created>
<Editor>sample string 6</Editor>
<EditorId>5</EditorId>
<Modified>2026-03-09T17:06:57.95266-03:00</Modified>
<Id>1</Id>
<Name>sample string 2</Name>
<State>
<Author>sample string 4</Author>
<AuthorId>3</AuthorId>
<Created>2026-03-09T17:06:57.95266-03:00</Created>
<Editor>sample string 6</Editor>
<EditorId>5</EditorId>
<Modified>2026-03-09T17:06:57.95266-03:00</Modified>
<Country>
<Author>sample string 4</Author>
<AuthorId>3</AuthorId>
<Created>2026-03-09T17:06:57.95266-03:00</Created>
<Editor>sample string 6</Editor>
<EditorId>5</EditorId>
<Modified>2026-03-09T17:06:57.95266-03:00</Modified>
<Id>1</Id>
<Name>sample string 2</Name>
</Country>
<Id>1</Id>
<Name>sample string 2</Name>
</State>
</CityModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.