Organizations

Organization management endpoints

Get current organization

get

Retrieve information about the organization associated with the authentication token

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Responses
chevron-right
200

Organization details

application/json
idinteger · int32Required

Organization unique identifier

Example: 1
namestringRequired

Organization name

Example: Acme Corp
descriptionstringOptional

Organization description

Example: A test organization
parentOrganizationIdinteger · int32Optional

Parent organization ID (for hierarchical structure)

Example: 1
tzstringRequired

A timezone, associated with the organization

Example: Europe/Kyiv
unitSystemstring · enumOptional

Unit system used in the organization.

Example: METRICPossible values:
phoneNumberstringOptional

Phone number, associated with the organization.

Example: +11234567890
lastModifiedTsinteger · int64Required

Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)

Example: 1707244800000
get
/api/v1/organization/profile
get

Search for organizations by the provided query.

Required permissions, when user-scoped authentication is used: ORG_VIEW.

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Query parameters
querystring · max: 255Required

Search query string

sortBystringOptional

Field to sort by

sortOrderstring · enumOptional

Sort order

Default: ASCPossible values:
pageinteger · int32Optional

Page number (0-indexed)

Default: 0
sizeinteger · int32 · min: 1 · max: 1000Optional

Page size (max 1000)

Default: 50
Responses
chevron-right
200

Search results

application/json
totalElementsinteger · int64Required

Total amount of organizations, available to fetch.

Example: 1
get
/api/v1/organization/search

Get organization by ID

get

Retrieve information about a specific organization.

Required permissions, when user-scoped authentication is used: ORG_VIEW.

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Query parameters
orgIdinteger · int32Required

Organization ID

Responses
chevron-right
200

Organization details

application/json
idinteger · int32Required

Organization unique identifier

Example: 1
namestringRequired

Organization name

Example: Acme Corp
descriptionstringOptional

Organization description

Example: A test organization
parentOrganizationIdinteger · int32Optional

Parent organization ID (for hierarchical structure)

Example: 1
tzstringRequired

A timezone, associated with the organization

Example: Europe/Kyiv
unitSystemstring · enumOptional

Unit system used in the organization.

Example: METRICPossible values:
phoneNumberstringOptional

Phone number, associated with the organization.

Example: +11234567890
lastModifiedTsinteger · int64Required

Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)

Example: 1707244800000
get
/api/v1/organization

Delete organization

delete

Delete an organization. Users and other resources in the organization are being deleted automatically.

The following organizations cannot be deleted:

  • The organization used for authentication (your own organization)

  • The root (super) organization

  • The Clients group organization

  • The Partners group organization

  • Organizations that have sub-organizations

  • Organizations that have devices

Required permissions, when user-scoped authentication is used: ORG_DELETE.

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Query parameters
orgIdinteger · int32Required

Organization ID

Responses
delete
/api/v1/organization

No content

Create a new organization

post

Create a new organization.

Required permissions, when user-scoped authentication is used: ORG_CREATE.

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Body
namestring · min: 3 · max: 100Required

Organization name. Only letters, digits, spaces, dots, hyphens, and apostrophes are allowed.

Example: Acme Corp
descriptionstring · max: 1000Optional

Organization description. Cannot contain slashes, backslashes, < or >.

Example: A test organization
tzstring · max: 200Optional

Organization timezone in the IANA Time Zone Database (TZDB) format.

Example: Europe/Kyiv
parentIdinteger · int32Optional

Parent organization ID (optional). If none is specified, the organization is created as a child of the organization associated with the authentication token.

Example: 1
phoneNumberstringOptional

Organization phone number.

Example: +11234567890
unitSystemstring · enumOptional

Unit system used in the organization.

Example: METRICPossible values:
Responses
post
/api/v1/organization/create

Update organization name

put

Update the name of an existing organization.

Required permissions, when user-scoped authentication is used: ORG_EDIT.

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Body
orgIdinteger · int32Optional

Organization ID (optional). If none is specified, the organization associated with the authentication token is being edited.

Example: 1
namestring · min: 3 · max: 100Required

New organization name. Only letters, digits, spaces, dots, hyphens, and apostrophes are allowed.

Example: New Organization Name
Responses
chevron-right
200

Organization updated successfully

application/json
idinteger · int32Required

Organization unique identifier

Example: 1
namestringRequired

Organization name

Example: Acme Corp
descriptionstringOptional

Organization description

Example: A test organization
parentOrganizationIdinteger · int32Optional

Parent organization ID (for hierarchical structure)

Example: 1
tzstringRequired

A timezone, associated with the organization

Example: Europe/Kyiv
unitSystemstring · enumOptional

Unit system used in the organization.

Example: METRICPossible values:
phoneNumberstringOptional

Phone number, associated with the organization.

Example: +11234567890
lastModifiedTsinteger · int64Required

Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)

Example: 1707244800000
put
/api/v1/organization/edit/name

Last updated

Was this helpful?