Docs

Get Organization Query Source Schema

GET /organizations/{orgId}/query-sources/{source}

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

FieldTypeRequiredDescription
orgIduuidRequired
sourcestringRequired

Query Parameters

FieldTypeRequiredDescription
pathstringOptional
authoringstringOptional

Response

FieldTypeDescription
namestring| null
labelstring| null
propertiesGetOrganizationQuerySourceSchemaResponseProperty[]| null
navigationsGetOrganizationQuerySourceSchemaResponseNavigation[]| null
roleBagsGetOrganizationQuerySourceSchemaResponseRoleBag[]| null
attributeBagsGetOrganizationQuerySourceSchemaResponseAttributeBag[]| null

GetOrganizationQuerySourceSchemaResponseProperty

FieldTypeDescription
pathstring| null
labelstring| null
kindstring| null
isFilterableboolean
isSelectableboolean
isSortableboolean
isGroupableboolean
isSearchableboolean
isAggregatableboolean
isCallerboolean
matchesLabelTextboolean
optionsGetOrganizationQuerySourceSchemaResponsePropertyOption[]| null

GetOrganizationQuerySourceSchemaResponseNavigation

FieldTypeDescription
namestring| null
labelstring| null
targetSourcestring| null
isCollectionboolean
isCallerboolean

GetOrganizationQuerySourceSchemaResponseRoleBag

FieldTypeDescription
namestring| null
rolesGetOrganizationQuerySourceSchemaResponseRole[]| null

GetOrganizationQuerySourceSchemaResponseAttributeBag

FieldTypeDescription
namestring| null
definitionsGetOrganizationQuerySourceSchemaResponseDefinition[]| null

GetOrganizationQuerySourceSchemaResponsePropertyOption

FieldTypeDescription
idstring| null
labelstring| null
colorstring| null
statestring| null
iconstring| null

GetOrganizationQuerySourceSchemaResponseRole

FieldTypeDescription
iduuid
namestring| null
fillerKindstring| null
hopTargetstring| null
isCollectionboolean
pathsGetOrganizationQuerySourceSchemaResponseSubPath[]| null

GetOrganizationQuerySourceSchemaResponseDefinition

FieldTypeDescription
iduuid
namestring| null
kindstring| null
optionsGetOrganizationQuerySourceSchemaResponseDefinitionOption[]| null
fieldClassIduuid| null
pathsGetOrganizationQuerySourceSchemaResponseSubPath[]| null

GetOrganizationQuerySourceSchemaResponseSubPath

FieldTypeDescription
pathstring| null
labelstring| null
kindstring| null

GetOrganizationQuerySourceSchemaResponseDefinitionOption

FieldTypeDescription
iduuid
labelstring| null
colorstring| null