---
title: "Update an in-person location"
method: PATCH
path: "/in-person/locations/{id}"
tags: ["In-Person Locations"]
---

# Update an in-person location

`PATCH /in-person/locations/{id}`

Updates an in-person location via its unique ID. Note that addresses and geo co-ordinates cannot be updated, to do this you must create a new location and delete the old one

## Path parameters

- `id` string, required

## Headers

- `Account` string

## Request body

- object — The request for for updating an in-person location
  - `name` string, nullable — Your name for the location. This can be used for display purposes.
  - `metadata` object, nullable — Your own custom key-value data for this object. These will be sent with any associated events on your webhooks. You can have a maximum of 10 pieces of metadata. Keys must be between 1 and 30 characters in length. Values must be between 1 and 250 characters in length.

## Response `200`

The resource was retrieved successfully

- InPersonLocation
  - `id` string — The unique Id of the location
  - `name` string — Your name for the location. This can be used for display purposes.
  - `address` InPersonLocationAddress
    - `lineOne` string — First line of the address
    - `lineTwo` string, nullable — Second line of the address
    - `city` string — The address city/town
    - `country` string — The two-character ISO country code
    - `postalCode` string — The postal code/zip of the address
    - `region` string — The state/county/province/region Required if the address is in the US/Canada and must be a 2-character ISO state/province code
  - `geoCoordinates` GeoCoordinates, nullable
    - `latitude` number, double
    - `longitude` number, double
  - `metadata` object — Your own custom key-value data for this object. These will be sent with any associated events on your webhooks. You can have a maximum of 10 pieces of metadata. Keys must be between 1 and 30 characters in length. Values must be between 1 and 250 characters in length.
  - `createdTimestamp` integer — The epoch timestamp (seconds) when the object was created
  - `lastUpdatedTimestamp` integer — The epoch timestamp (seconds) when the object was last updated

## Other responses

- `400` — One or more inputs are invalid
- `404` — The given resource could not be found
- `500` — An unexpected error occurred when executing this request

---

[API](https://skmtc.net/ryftpay/apis/ryft-payment-api.md) · [All operations](https://skmtc.net/ryftpay/apis/ryft-payment-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ryftpay/ryft-payment-api/versions/a042f64d4305/schema)
