Developers
Set your API contextPick a region and space ID once. Every sample fills in your base URL.
Where do I find these?

In Coevera: open your space's API application and choose Show Access. It shows the space ID and the base URL, whose host starts with your region.

From the API: if you know the space ID, the discovery endpoint GET /api/discovery/spaces/{space_id} returns its region and base URLs, without credentials.

Only the region and space ID are kept, in this browser. Never paste a key or password here.

More in the quickstart

GraphQLRepositoriesdata

entities.data

Read data records with the data repository, and change them with the data mutations. Same records as the REST Data entity.

Queries

Fields of entities { data { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
DataEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[DataEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: DataFilterInput, orderBy: [DataOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[DataEntity!]!
QUERYgetByCriteria(filter: DataFilterInput, orderBy: [DataOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
DataEntityConnection
QUERYgetPublished(limit: Int, offset: Int, filter: DataFilterInput, orderBy: [DataOrderByInput!], includeDeleted: Boolean)
Returns the published records that match the filter, paged with limit and offset.
[DataEntity!]!
QUERYgetDrafts(filter: DataFilterInput, orderBy: [DataOrderByInput!])
Returns the records that match the filter, with pending unpublished changes applied where a draft exists.
[DataEntity!]!
QUERYgetDraftById(entityId: ID!)
Returns the record with the given id, with its pending unpublished changes applied when a draft exists.
DataEntity!

Mutations

KindMutationDoesReturns
MUTATIONrestoreData(input: RestoreDataInput!)Restore a deleted recordRestoreDataPayload
MUTATIONdeleteData(input: DeleteDataInput!)Soft-deleteDeleteDataPayload
MUTATIONcreateData(input: CreateDataInput!, validationLevel: [ValidationLevel!])Create one recordCreateDataPayload
MUTATIONupdateData(input: UpdateDataInput!, validationLevel: [ValidationLevel!])Update fieldsUpdateDataPayload

Types

The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.

DataEntity object 16 fields: isDeleteProtected, hasDraft, id, …

Option of a dropdown or multi-select field, one of the values users can choose from.

FieldTypeDescription
isDeleteProtectedBoolean!True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
hasDraftBooleanTrue when the record has unpublished draft changes, including pending translation changes, that can be published.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
allowedByJSONStringFor dependent dropdowns, the parent-field values this option is available for, as a JSON array of identifiers (option ids or enum names). Empty when always available.
calcValueFloatNumeric value associated with the option, used in calculation formulas (e.g. score of a dropdown option).
dataSetIdID!Identifier of the data set this option belongs to. Shared by all options of a dropdown / radio / multiselect field.
optionNameString!Name of the entity and its default text representation.
sortOrderInt!Position of the option within its data set; lower values appear first.
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionIntRevision when entity was lastly changed.
optionNameTranslationsJSONString!Map of locale codes to translated option names (e.g. {"en-US": "Hot", "de-DE": "Heiß"}). Empty when no translations are defined.
optionNameTranslatedStringOption name in the current user's language, taken from optionNameTranslations. Empty when no translation is available for that language.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
DataEntityConnection object pageInfo: PageInfo!, edges: [DataEntityEdge]!, totalCount: Int

Paginated list of Data records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[DataEntityEdge]!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.
DataEntityEdge object node: DataEntity, cursor: String!

A Relay edge containing a DataEntity and its cursor.

FieldTypeDescription
nodeDataEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
DataFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

Filter conditions for Data records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

Input fieldTypeDescription
OR[DataFilterInput!]Matches records that meet at least one of the listed filters.
AND[DataFilterInput!]Matches records that meet all of the listed filters.
NOTDataFilterInputMatches records that do not meet this filter.
globalSearchQueryStringSearch term matched against the fields that the global search covers for this entity.
idEntityFilterStringFieldUnique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
calcValueEntityFilterNumberFieldNumeric value associated with the option, used in calculation formulas (e.g. score of a dropdown option).
dataSetIdEntityFilterStringFieldIdentifier of the data set this option belongs to. Shared by all options of a dropdown / radio / multiselect field.
optionNameEntityFilterStringFieldName of the entity and its default text representation.
sortOrderEntityFilterNumberFieldPosition of the option within its data set; lower values appear first.
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
DataOrderByInput input Asc or Desc per field

Sorting of Data records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
calcValueOrderByEnumNumeric value associated with the option, used in calculation formulas (e.g. score of a dropdown option).
optionNameOrderByEnumName of the entity and its default text representation.
sortOrderOrderByEnumPosition of the option within its data set; lower values appear first.
isPublishedOrderByEnumTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionOrderByEnumRevision when entity was lastly changed.
CreateDataInput input 11 fields: clientMutationId, modified, created, …

Field values of a new Data record.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
allowedByJSONStringFor dependent dropdowns, the parent-field values this option is available for, as a JSON array of identifiers (option ids or enum names). Empty when always available.
calcValueFloatNumeric value associated with the option, used in calculation formulas (e.g. score of a dropdown option).
dataSetIdID!Identifier of the data set this option belongs to. Shared by all options of a dropdown / radio / multiselect field.
optionNameString!Name of the entity and its default text representation.
sortOrderInt!Position of the option within its data set; lower values appear first.
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionIntRevision when entity was lastly changed.
optionNameTranslationsJSONStringMap of locale codes to translated option names (e.g. {"en-US": "Hot", "de-DE": "Heiß"}). Empty when no translations are defined.
DeleteDataInput input clientMutationId: String, id: ID!

Id of the Data record to delete.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
RestoreDataInput input sortOrder: Int!, id: ID!, clientMutationId: String

Parameters of the restoreData mutation.

Input fieldTypeDescription
sortOrderInt!Zero-based position of the restored option within its data set; the other options are renumbered around it.
idID!Identifier of the DataEntity to perform the action on.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateDataInput input 10 fields: clientMutationId, id, modified, …

Id of a Data record and the field values to change.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
allowedByJSONStringFor dependent dropdowns, the parent-field values this option is available for, as a JSON array of identifiers (option ids or enum names). Empty when always available.
calcValueFloatNumeric value associated with the option, used in calculation formulas (e.g. score of a dropdown option).
optionNameStringName of the entity and its default text representation.
sortOrderIntPosition of the option within its data set; lower values appear first.
revisionIntRevision when entity was lastly changed.
optionNameTranslationsJSONStringMap of locale codes to translated option names (e.g. {"en-US": "Hot", "de-DE": "Heiß"}). Empty when no translations are defined.
CreateDataPayload object data: DataEntity, clientMutationId: String

Result of the createData mutation.

FieldTypeDescription
dataDataEntityThe created record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
DeleteDataPayload object data: DataEntity, clientMutationId: String

Result of the deleteData mutation.

FieldTypeDescription
dataDataEntityThe deleted record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
RestoreDataPayload object result: DataEntity, clientMutationId: String

Result of the restoreData mutation.

FieldTypeDescription
resultDataEntityThe restored option.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateDataPayload object data: DataEntity, clientMutationId: String

Result of the updateData mutation.

FieldTypeDescription
dataDataEntityThe updated record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).