Merchant API
Update a location
api
patch
/api/locations/{location_id}

Update a location

Update details of a specific location, based on its ID.

note

The value of the location's type parameter cannot be updated.

Request

Path Parameters
Path Parameters
Header Parameters
Header Parameters
Request body
Body object

Response

Location updated

Response body
Body object
Was this page helpful?
PATCH
/api . /locations . /{location_id} . 
Parameters
curl -L -g -X PATCH 'https://merchant.revolut.com/api/locations/{location_id}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <yourSecretApiKey>' \
--data-raw '{
"name": "Cars website - Name update",
"details": {
"domain": "cars.example.com"
}
}'
Request body samples
{
"name": "Cars website - Name update",
"details": {
"domain": "cars.example.com"
}
}
Response body samples
{
"id": "8d9a7125-805f-40f3-a405-bc89765db996",
"name": "Cars website - Name update",
"type": "online",
"details": {
"domain": "cars.example.com"
}
}