Skip to main content
PATCH
/
cities
/
{state}
/
{name}
Update an existing City
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
state

City is uniquely identified by State

name
string

City is uniquely identified by Name

Response

City Updated

data
object
Examples:
{
"name": "Springfield",
"state": { "code": "IL" }
}
success
boolean
I