GET restapi/sites/all/organisations/v1?sitesFilter={sitesFilter}

Get all organisations (sites and schools).

This method does not have security checks - it is open.

Optional filtering by site type: Itslearning, Parents.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sitesFilter

[All|Itslearning|Parents] filter for sites

Itsolutions.Itslearning.Web.RestApi.Public.Unauthenticated.SitesFilter

Default value is All

Body Parameters

None.

Response Information

Resource Description

EntityListOfItslearning.RestApi.Entities.AggregatedOrganisationLite
NameDescriptionTypeAdditional information
EntityArray

Collection of Itslearning.RestApi.Entities.AggregatedOrganisationLite

None.

Total

integer

None.

CurrentPageIndex

integer

None.

PageSize

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "EntityArray": [
    {
      "CustomerId": 1,
      "SiteName": "sample string 2",
      "SchoolName": "sample string 3",
      "IsSite": true
    },
    {
      "CustomerId": 1,
      "SiteName": "sample string 2",
      "SchoolName": "sample string 3",
      "IsSite": true
    }
  ],
  "Total": 1,
  "CurrentPageIndex": 2,
  "PageSize": 3
}

application/xml, text/xml

Sample:
<EntityList xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CurrentPageIndex>2</CurrentPageIndex>
  <EntityArray>
    <AggregatedOrganisationLite>
      <CustomerId>1</CustomerId>
      <IsSite>true</IsSite>
      <SchoolName>sample string 3</SchoolName>
      <SiteName>sample string 2</SiteName>
    </AggregatedOrganisationLite>
    <AggregatedOrganisationLite>
      <CustomerId>1</CustomerId>
      <IsSite>true</IsSite>
      <SchoolName>sample string 3</SchoolName>
      <SiteName>sample string 2</SiteName>
    </AggregatedOrganisationLite>
  </EntityArray>
  <PageSize>3</PageSize>
  <Total>1</Total>
</EntityList>