Skip to main content
objectEndpoint

Implements

Fields

activeContent

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": []}}]}.

apiVersion

API version the endpoint belongs to.

apiVersionId
ID!

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.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

description
String!

Free-text note about the endpoint.

displayName
String!

Label shown in Studio.

etag

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.

filterableFields
[String!]!

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.

graphQlQuery
String!

Query over the tenant's cards that activeContent translates to. Generated by the server.

id
ID!

Global id of the endpoint. endpointById, endpointsById and the endpoint mutations take it.

pendingChanges

Differences between pendingContent and activeContent, one item per change. Empty when pendingContent is null.

pendingContent

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.

pendingContentDiff
deprecated
Use `pendingChanges` instead

Segment changes queued for the endpoint with queueSegmentChangesForEndpoint and not yet applied.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

safeName
String!

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.

searchableFields
[String!]!

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.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

tenantId

Id of the tenant that owns the endpoint.