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

Path Parameters

state
string
required

City is uniquely identified by State

name
string
required

City is uniquely identified by Name

Query Parameters

depth
integer

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

Body

application/json

Response

200
application/json

City Updated

The response is of type object.