Skip to main content
POST
/
cities
Add a new City
curl --request POST \
  --url https://commerce.driv.ly/api/cities \
  --header 'Content-Type: application/json' \
  --data '
{
  "state": "<string>",
  "name": "<string>"
}
'
{
  "data": {
    "state": "<string>",
    "name": "<string>"
  },
  "success": true
}

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
state
required

City is uniquely identified by State

name
string
required

City is uniquely identified by Name

Response

City Added

data
City · object
success
boolean