Organisation

Read and update organisation settings

GET/api/v1/organisation

Get organisation

Returns the current organisation's settings and details.

Response

FieldTypeDescription
idstring(uuid)
namestring
slugstring
domainstring| null
logo_urlstring| null
country_codestring
timezonestring
working_daysarray
leave_year_typestring
leave_year_start_monthinteger
leave_year_start_dayinteger
default_leave_allowancenumber
created_atstring(date-time)
curl https://api.offly.net/api/v1/organisation \
  -H "Authorization: Bearer YOUR_API_KEY"
Try it

Do not use production API keys on shared devices. Keys are stored in memory only.

PATCH/api/v1/organisation

Update organisation

Updates organisation settings. Requires admin or owner role.

Request body

FieldTypeDescription
namestring
country_codestring
timezonestring
working_daysarray
leave_year_typestring
leave_year_start_monthinteger
leave_year_start_dayinteger
default_leave_allowancenumber

Response

FieldTypeDescription
idstring(uuid)
namestring
slugstring
domainstring| null
logo_urlstring| null
country_codestring
timezonestring
working_daysarray
leave_year_typestring
leave_year_start_monthinteger
leave_year_start_dayinteger
default_leave_allowancenumber
created_atstring(date-time)
curl -X PATCH https://api.offly.net/api/v1/organisation \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Try it

Do not use production API keys on shared devices. Keys are stored in memory only.