Get all organizations

Prev Next
Get
/v2/network/organizations

Returns the list of all organizations.
This endpoint is authorized for organizations only, and allows retrieving the list of organizations specifying:
 - The sorting criteria (also multiple).
 - The paging configuration.

The list of results is limited to only those organizations authorized to the user's parent organization.
Required permissions: READ_ALL_ORGANIZATIONS.

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the tenant (e.g. acme).

Query parameters
size
integer

The number of elements to retrieve for the current page.

Minimum1
Example200
page
integer

The page number to retrieve (zero-based).

Minimum0
Example0
sort
string

The sorting criteria based on object properties.

Minimum0
Examplename,ASC
Responses
200

Successful operation.

Expand All
object
content
Array of object (Organization)
object

The bean providing organization details.

id
string

The organization object identifier.

name
string

The name of the organization.

country
string

The country of the organization.

countryIsoCode
string

The country ISO Code of the organization.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

parent
object

The parent organization identifier (required only for creation).

id
string

The referenced object identifier.

Example1234abcd
first
boolean

The flag indicating whether the page is the first one.

last
boolean

The flag indicating whether the last page has been reached.

totalPages
integer

The total number of pages.

totalElements
integer

The total number of elements.

sort
string

The current sorting criteria.

numberOfElements
integer

The number of elements in this page.

size
integer

The requested page size.

number
integer

The number of the page (zero-based).

Minimum0
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
404

Resource was not found.

object
message
string

The error response.

ExampleResource not found
429

API call rate limit exceeded.

object
message
string

The error response.

ExampleAPI call rate limit exceeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error