GET/organizations/{orgId}/query-sources/{source}
Describes an organization source for building queries: its properties with kind, capabilities and options
(status values, the organization's event types and locations), relationships and role bags for drill-in, and
attribute bags with the definitions the caller's field classes allow. A new definition appears here before any
saved query uses it. The source name comes from Query_GetOrganizationQuerySources; an unknown source is a 404.
With path, gets the schema of the records reached through that relationship from this source, for picking related
properties: path from this route's navigations or a role's hopTarget (roles.{id}.{fillerKind}). Paths come back
prefixed; an unknown path is a 404, one deeper than the hop limit a 400. With authoring=Event, describes an event
source for building a document template's data table: the organization's definitions and the fields the caller's
Organization field classes allow, no rows; the source name then comes from Query_GetOrganizationQuerySources with
authoring=Event. Needs Organization basic access.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
| source | string | Required | |
Query Parameters
| Field | Type | Required | Description |
|---|
| path | string | Optional | |
| authoring | string | Optional | |
Response
| Field | Type | Description |
|---|
| name | string| null | |
| label | string| null | |
| properties | GetOrganizationQuerySourceSchemaResponseProperty[]| null | |
| navigations | GetOrganizationQuerySourceSchemaResponseNavigation[]| null | |
| roleBags | GetOrganizationQuerySourceSchemaResponseRoleBag[]| null | |
| attributeBags | GetOrganizationQuerySourceSchemaResponseAttributeBag[]| null | |
GetOrganizationQuerySourceSchemaResponseProperty
| Field | Type | Description |
|---|
| path | string| null | |
| label | string| null | |
| kind | string| null | |
| isFilterable | boolean | |
| isSelectable | boolean | |
| isSortable | boolean | |
| isGroupable | boolean | |
| isSearchable | boolean | |
| isAggregatable | boolean | |
| isCaller | boolean | |
| matchesLabelText | boolean | |
| options | GetOrganizationQuerySourceSchemaResponsePropertyOption[]| null | |
GetOrganizationQuerySourceSchemaResponseNavigation
| Field | Type | Description |
|---|
| name | string| null | |
| label | string| null | |
| targetSource | string| null | |
| isCollection | boolean | |
| isCaller | boolean | |
GetOrganizationQuerySourceSchemaResponseRoleBag
| Field | Type | Description |
|---|
| name | string| null | |
| roles | GetOrganizationQuerySourceSchemaResponseRole[]| null | |
GetOrganizationQuerySourceSchemaResponseAttributeBag
| Field | Type | Description |
|---|
| name | string| null | |
| definitions | GetOrganizationQuerySourceSchemaResponseDefinition[]| null | |
GetOrganizationQuerySourceSchemaResponsePropertyOption
| Field | Type | Description |
|---|
| id | string| null | |
| label | string| null | |
| color | string| null | |
| state | string| null | |
| icon | string| null | |
GetOrganizationQuerySourceSchemaResponseRole
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| fillerKind | string| null | |
| hopTarget | string| null | |
| isCollection | boolean | |
| paths | GetOrganizationQuerySourceSchemaResponseSubPath[]| null | |
GetOrganizationQuerySourceSchemaResponseDefinition
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| kind | string| null | |
| options | GetOrganizationQuerySourceSchemaResponseDefinitionOption[]| null | |
| fieldClassId | uuid| null | |
| paths | GetOrganizationQuerySourceSchemaResponseSubPath[]| null | |
GetOrganizationQuerySourceSchemaResponseSubPath
| Field | Type | Description |
|---|
| path | string| null | |
| label | string| null | |
| kind | string| null | |
GetOrganizationQuerySourceSchemaResponseDefinitionOption
| Field | Type | Description |
|---|
| id | uuid | |
| label | string| null | |
| color | string| null | |