Skip to navigation

Update Branch

Changes a branch. Shared rules: see Writing data.

  • The body is closed: an unknown field is refused with 400 "Unknown field." Counts toward your write budget.
  • name is the current branch name, matched exactly (see GET /company/branch). An unknown name is refused with 400 on name.
  • Send at least one of new_name, address, latitude and longitude together, or radius. Anything left out stays as it is.
  • new_name is at most 200 characters and must be unique in the company.
  • radius is in metres, 50 to 1000. If the branch’s saved radius is outside that range and you don’t send radius, the request is refused with 400 on radius: send one in range with the change.
  • There is no delete.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
namestringRequired
Current exact branch name.
new_namestringOptional<=200 characters
New branch name. Unique in the company.
addressstringOptional<=500 characters
Address.
latitudedoubleOptional-90-90

Latitude. Send with longitude.

longitudedoubleOptional-180-180

Longitude. Send with latitude.

radiusintegerOptional50-1000
Radius in metres.

Response

The branch was updated.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error