POST
/
cities
curl --request POST \
  --url https://commerce.driv.ly/api/cities \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Springfield",
  "state": {
    "code": "IL"
  }
}'
{
  "data": {
    "name": "Springfield",
    "state": {
      "code": "IL"
    }
  },
  "success": true
}

Query Parameters

depth
integer

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

Body

application/json

Response

200
application/json

City Added

The response is of type object.