DUMA/ API

Locations update

Locations update, with the permissions the key’s creator has in DUMA today.

PATCHhttps://api.duma-business.com/v1/manage/locations/{id}

locations:manageSecret key only

Request example

Example request
curl -X PATCH "https://api.duma-business.com/v1/manage/locations/{id}" \
  -H "Authorization: Bearer dk_sec_…" \
  -H "Content-Type: application/json" \
  -d '{ … }'

Path parameters

idstringRequired
A UUID.

Request body

JSON, sent with Content-Type: application/json.

namestring
2–100 characters.
timezonestring
Up to 100 characters.
addressstring | null
Can be null.
phonestring
Up to 30 characters.
openingHoursobject
orderFulfilmentModestring
kitchencounter
dailyRevenueTargetnumber | null
Can be null.
isActiveboolean
idempotencyKeystring
Stable unique request identifier. Reuse unchanged on retry. Requires Redis; retained results prevent duplicate writes. 8–128 characters.

Response

  • 200Management result
  • 201Created
  • 204Deleted
  • 400Validation failed — invalid request body
  • 401Unauthorized — missing or invalid bearer token
  • 403Scope, owner access, or module denied
  • 409Version, reference or retry conflict
  • 429Too many requests — rate limited