POST Api/OrganizationalUnits/ExportToPdf

Eksportuje wyniki wyszukiwania do pliku PDF (pomija stronicowanie)

Request Information

URI Parameters

None.

Body Parameters

ustawienia filtrowania i sortowania wyników

OrganizationalUnitFilter
NameDescriptionTypeAdditional information
TextFilter

Filtrowanie w zależności od tekstu. Jeśli null to brak filtrowania.

string

None.

SortOrder

Określa sposób sortowania wyników

OrganizationalUnitSortEnum

Required

ParentUnitId

Filtruje listę wyników według identyfikatora obiektu ParentUnit. Jeśli null to filtr jest pomijany.

integer

None.

OwnerId

Filtruje listę wyników według identyfikatora obiektu Owner. Jeśli null to filtr jest pomijany.

integer

None.

MasterUnitId

Filtruje listę wyników według identyfikatora obiektu MasterUnit. Jeśli null to filtr jest pomijany.

integer

None.

ManagedServiceProviderId

Filtruje listę wyników według identyfikatora obiektu ManagedServiceProvider. Jeśli null to filtr jest pomijany.

integer

None.

CountryId

Filtruje listę wyników według identyfikatora obiektu Country. Jeśli null to filtr jest pomijany.

integer

None.

TypeOfBusinessId

Filtruje listę wyników według identyfikatora obiektu TypeOfBusiness. Jeśli null to filtr jest pomijany.

integer

None.

MainOwner

Filtruje listę wyników według głównego właściciela obiektu Owner. Jeśli false to filtr jest pomijany.

boolean

None.

IsActive

Filtruje listę wyników według aktywności jednostek IsActive. Jeśli null to filtr jest pomijany.

boolean

None.

RecProjectAttributes

Collection of SelectedRecProjectAttrDto

None.

RegionIds

Collection of integer

None.

ItemsPerPage

Ilość obiektów na stronę

integer

None.

CurrentPage

Obecna strona

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "textFilter": "sample string 1",
  "sortOrder": 0,
  "parentUnitId": 1,
  "ownerId": 1,
  "masterUnitId": 1,
  "managedServiceProviderId": 1,
  "countryId": 1,
  "typeOfBusinessId": 1,
  "mainOwner": true,
  "isActive": true,
  "recProjectAttributes": [
    {
      "id": 1,
      "value": "sample string 1"
    },
    {
      "id": 1,
      "value": "sample string 1"
    }
  ],
  "regionIds": [
    1,
    2
  ],
  "itemsPerPage": 3,
  "currentPage": 4
}

multipart/form-data

Sample:
{"textFilter":"sample string 1","sortOrder":0,"parentUnitId":1,"ownerId":1,"masterUnitId":1,"managedServiceProviderId":1,"countryId":1,"typeOfBusinessId":1,"mainOwner":true,"isActive":true,"recProjectAttributes":[{"id":1,"value":"sample string 1"},{"id":1,"value":"sample string 1"}],"regionIds":[1,2],"itemsPerPage":3,"currentPage":4}

application/xml, text/xml

Sample:
<OrganizationalUnitFilter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ItemsPerPage>3</ItemsPerPage>
  <CurrentPage>4</CurrentPage>
  <TextFilter>sample string 1</TextFilter>
  <SortOrder>OrganizationalUnitIdAsc</SortOrder>
  <ParentUnitId>1</ParentUnitId>
  <OwnerId>1</OwnerId>
  <MasterUnitId>1</MasterUnitId>
  <ManagedServiceProviderId>1</ManagedServiceProviderId>
  <CountryId>1</CountryId>
  <TypeOfBusinessId>1</TypeOfBusinessId>
  <MainOwner>true</MainOwner>
  <IsActive>true</IsActive>
  <RecProjectAttributes>
    <SelectedRecProjectAttrDto>
      <Id>1</Id>
      <Value>sample string 1</Value>
    </SelectedRecProjectAttrDto>
    <SelectedRecProjectAttrDto>
      <Id>1</Id>
      <Value>sample string 1</Value>
    </SelectedRecProjectAttrDto>
  </RecProjectAttributes>
  <RegionIds>
    <int>1</int>
    <int>2</int>
  </RegionIds>
</OrganizationalUnitFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

wygenerowany plik PDF z danymi

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.