Endpoint
Route of an API version that serves one card definition’s cards: the card properties, related cards and segment filters set in its content (activeContent). safeName names it in the version’s API URL.
EndpointImplements
Fields
Content the endpoint serves now. Shape: {analyzedQuery, content}. content is what was set through ContentSelectionInput, with raw ids: {id, properties: [{id, alias, facet: {header: [{key, value}], size}}], filters: [{segmentDefinitionId, include, exclude}], relations: [{id, alias, cardinality, order: {by, sort}, target: <same shape as content>}]}. The server derives analyzedQuery from it. The card properties the endpoint exposes are content.properties, plus the properties of each relation's target. Enum values appear as "Plural" and "Asc", not as the GraphQL values PLURAL and ASC. Example content: {"id": "product", "properties": [{"id": "id", "alias": null, "facet": null}, {"id": "color", "alias": "colour", "facet": {"header": [{"key": "en", "value": "Color"}], "size": 50}}], "filters": [{"segmentDefinitionId": "season", "include": ["summer"], "exclude": null}], "relations": [{"id": "variants", "alias": "variants", "cardinality": "Plural", "order": {"by": "size", "sort": "Asc"}, "target": {"id": "variant", "properties": [{"id": "id", "alias": null, "facet": null}], "filters": [], "relations": []}}]}.
API version the endpoint belongs to.
Global id of the API version the endpoint belongs to (ApiVersion.id).
Card definitions in the endpoint's content (the root one and those reached through relations), in activeContent or pendingContent.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Free-text note about the endpoint.
Label shown in Studio.
Version tag for optimistic concurrency. Pass the value you last read to updateEndpoint or discardPendingChanges; a stale value fails the call.
Facet settings stored on the endpoint itself, used only when no root card property in activeContent has a facet. createEndpoint leaves this empty; set facets with ContentPropertySelectionInput.facet instead.
Names of the root card properties in activeContent, as the API outputs them (the alias, or the card property id), plus _segments. Derived by the server.
Query over the tenant's cards that activeContent translates to. Generated by the server.
Global id of the endpoint. endpointById, endpointsById and the endpoint mutations take it.
Differences between pendingContent and activeContent, one item per change. Empty when pendingContent is null.
Content the endpoint serves once its pending changes are applied, shaped like activeContent. Null when there are no pending changes. updateEndpoint writes here while the version is published or publishing, and queued segment changes land here unless the version is NEW. applyPendingVersionChanges makes it the active content; discardPendingChanges drops it.
Segment changes queued for the endpoint with queueSegmentChangesForEndpoint and not yet applied.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Name of the endpoint in its version's API URL, in lowercase and unique within the version. Set when the endpoint is created; can't change.
The text and localized card properties among filterableFields. Derived by the server.
Extra names for root card properties. Each item is {key, value}: key is the alias, value is the card property name it stands for. Callers of the destination API can write @<key> where a field name is expected. Not settable through this API.
Segments the endpoint's content filters on, in activeContent or pendingContent, on the root card or on related cards.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Id of the tenant that owns the endpoint.
Was this page helpful?