Skip to navigation

Add Branch

Adds a branch (work location). 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 required, at most 200 characters, and must be unique in the company: 400 on name, “A branch with this name already exists.” Repeating the same request is harmless.
  • address is at most 500 characters.
  • latitude (-90 to 90) and longitude (-180 to 180) are sent together, otherwise 400 “Send latitude and longitude together.”
  • radius is the location-based attendance radius in metres, 50 to 1000. Default 200.
  • A plan with a branch limit refuses more branches with 403.
  • There is no delete.

Authentication

AuthorizationApi-Key

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

Request

This endpoint expects an object.
namestringRequired1-200 characters
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

Location-based attendance radius in metres. Default 200.

Response

The branch was added.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error