Skip to main content
QUERY
apiVersionById(id: ID!): ApiVersion!

Arguments

id
ID!
required

Global id of the version (ApiVersion.id).

Returns

allowedOrigins

Web origins allowed to call the version's API from a browser (CORS). * allows any origin.

Applications that can call the version's API, including tenant applications with access to it.

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.

authentication

What callers of the version's API must send. See AuthenticationOption.

Card definitions the version's endpoints publish.

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.

Clusters the version runs in, one per region.

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.

createdAt

When the version was created (UTC).

createdBy

Id of the user or application that created the item. Null if not recorded.

defaultClusterId
ID!

Global id of the cluster the version runs in by default (Cluster.id).

defaultLanguage
String!

Output language the API uses when a request names none. One of the values in languages.

destination

Destination the version belongs to.

destinationId
ID!

Global id of the destination the version belongs to (Destination.id).

Indexing clusters that hold the version's data.

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.

Endpoints of the version: the routes its API serves.

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.

hasPendingChanges
Boolean

True lists only endpoints with changes not yet applied, false only those without. Null lists all.

last
Int

Returns the last n elements from the list.

etag

Version tag for optimistic concurrency. Pass back the value you last read when you change the item.

id
ID!

Global id of the version. apiVersionById and the version mutations take it.

indexerVersion

Indexer version the version uses. See IndexerVersion.

Indexing progress of the version's data per region. Set the window with where: { period: { eq: <hours> } }; default 1 hour.

isDeleted
Boolean!

True if the item is archived. Archived items are still returned unless you filter on isDeleted.

Languages the version's API serves. Each item is {key, value}: key is the source language code, value is the language code the API outputs (e.g. en).

lastModified

When the version last changed (UTC).

lastUpdatedBy

Id of the user or application that last changed the item. Null if not recorded.

publishingStatus

Step-by-step progress of the version's last full or partial publish. Its status is UNKNOWN when the version was never published, was only published as a preview, or its last publish is no longer kept; read state instead.

Segment changes to the version's endpoints that are queued 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.

revision
Int!

Change counter of what the version publishes. Starts at 1 and goes up when its languages change or applyPendingVersionChanges applies endpoint changes.

Segments used by the version's endpoints.

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.

Publishing state of the version. See ApiVersionState.

tenantId

Id of the tenant that owns the item.

version
Int!

Version number within the destination, from 1 up. The version's API URL uses it as v<version>.

Query
Variables
Response