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. nameis the current branch name, matched exactly (seeGET /company/branch). An unknown name is refused with400onname.- Send at least one of
new_name,address,latitudeandlongitudetogether, orradius. Anything left out stays as it is. new_nameis at most 200 characters and must be unique in the company.radiusis in metres, 50 to 1000. If the branch’s saved radius is outside that range and you don’t sendradius, the request is refused with400onradius: 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.
name
Current exact branch name.
new_name
New branch name. Unique in the company.
address
Address.
latitude
Latitude. Send with longitude.
longitude
Longitude. Send with latitude.
radius
Radius in metres.
Response
The branch was updated.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
