v1

latestOpenAPI 3.0.02026-07-14800227.2 KB
Offices

Return an office for a given office id.

Returns the office referenced by id.

get/offices/{id}

Path parameters

idstring required
Example:60a2db290da29e126a18789a

The _id of the office entry to request.

Headers

Authorizationstring required
Example:Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FwaS5rZW5qby5pbyIsInN1YiI6IjYwZjBhOTE2MjE0OTg3MjU2YmU5YzhmZiIsImF1ZCI6Imh0dHBzOi8vYXBpLmtlbmpvLmlvIiwiaWF0IjoxNjI2Mzg1MTE1LCJuYmYiOjE2MjYzODUxMTUsImV4cCI6MTYyNjU1NzkxNSwiYWNjZXNzVHlwZSI6IkFwaUFjY2VzcyIsInNfb3JnSWQiOiI2MGYwNGVhN2RmN2JhMjFlY2U0YmYzYzIifQ.cxG_7dIS-VbmDXdJuLkekoyuyCIzQG2fMcgc0nkfbWE8cihhcb5FnALbQkjU9b5-qVcEoMHZlSuUA-jMEBMMVQ

A valid bearer token.

Response

OK

_idstring

The Kenjo _id of the office.

namestring

The name of the office.

companyIdstring

The Kenjo id of the company.

calendarIdstring

The Kenjo id of the calendar.

streetstring

The street of the office.

postalCodestring

The postal code of the office.

citystring

The city of the office.

countrystring

The country of the office in ISO code.

Example response

{
  "_id": "40a2db290da29e126a18789a",
  "name": "Spain office",
  "companyId": "40a2db290da29e126a187892",
  "calendarId": "40a2db290da29e126a187895",
  "street": "Paseo Castellana, 13",
  "city": "Madrid",
  "country": "ES"
}