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

GraphQLRepositoriescustomEntity

entities.customEntity

Read custom entity records with the customEntity repository, and change them with the custom entity mutations. Same records as the REST {custom_entity_api_name} entity.

Queries

Fields of entities { customEntity { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
CustomEntityEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[CustomEntityEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: CustomEntityFilterInput, orderBy: [CustomEntityOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[CustomEntityEntity!]!
QUERYgetByCriteria(filter: CustomEntityFilterInput, orderBy: [CustomEntityOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
CustomEntityEntityConnection
QUERYgetChangedFieldsSinceRevision(id: UUID!, revision: Int!)
Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.
[UUID!]!
QUERYgetBySession(includedIds: [UUID!]!, excludedIds: [UUID!]!, sessionId: String!, before: String, after: String, first: Int, last: Int)
Returns a page of records selected in a list or report: all records of the given result plus the explicitly included ids, minus the excluded ids.
CustomEntityEntityConnection
QUERYgetByIdFormatted(id: UUID!, fieldIds: [UUID!])
Returns the values of a record's fields formatted for display, keyed by field id.
JSONString
QUERYautoPrefill(mappingId: UUID!, entityId: UUID!, targetEntityTypeId: UUID)
Returns a new, unsaved record pre-filled from a source record according to a field mapping. Nothing is saved; the returned values can be used as input for create.
CustomEntityEntity!

Mutations

KindMutationDoesReturns
MUTATIONchangeOwnershipCustomEntity(input: ChangeOwnershipCustomEntityInput!)Change owner GraphQL onlyChangeOwnershipCustomEntityPayload
MUTATIONcopyCustomEntity(input: CopyCustomEntityInput!)Copy a record GraphQL onlyCopyCustomEntityPayload
MUTATIONmanageSharingCustomEntity(input: ManageSharingCustomEntityInput!)Change who it is shared with GraphQL onlyManageSharingCustomEntityPayload

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.

CustomEntityEntity object 27 fields: customFields, pendingScheduledActions, isDeleteProtected, …

Record of a custom entity, a kind of record the space defines (such as Vehicle or Contract) in addition to the built-in entities.

FieldTypeDescription
customFieldsJSONString! (1 args)Values of the record's custom fields as a JSON object keyed by custom field apiName (camelCase).
pendingScheduledActionsIntFilled only when a single record is read by its id; otherwise null or an empty list.
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.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
currencyExchangeRatesListCurrencyExchangeRatesListEntityCurrency exchange rate list used to convert monetary fields linked to this record. Empty to inherit the team space default.
ownerClientEntitySales user who owns this custom entity record.
typeCustomEntityTypeEntityCustom entity type that classifies this record. Custom entity types are configurable per team space and define the schema (fields and form) of the records.
unitSalesUnitEntitySales unit this record is assigned to. Determines which team members can see the record under unit-based sharing.
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this record.
nameStringName of the entity and its default text representation.
ownerIdID!Id of the sales user who owns the custom entity record.
shareModeShareModeEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users).
tableNameString!Discriminator identifying which custom entity type this record belongs to. Read-only; matches CustomEntityType.entityApiName and is used as the entity name in REST and GraphQL queries.
typeIdIDId of the custom entity type.
unitIdIDId of the sales unit.
sharingUnitsCustomEntitySharingSalesUnitRelationEntityConnection (8 args)Sales units that have been granted shared access to this custom entity record. Editable only when shareMode allows unit sharing.
sharingClientsCustomEntitySharingClientRelationEntityConnection (8 args)Users that have been granted shared access to this custom entity record. Editable only when shareMode allows user sharing.
documentsCloudObjectRelationEntityConnection (8 args)Documents linked to this custom entity record.
staticProfilesProfileRelationEntityConnection (8 args)Saved view profiles this custom entity record currently matches.
tagsTagRelationEntityConnection (8 args)Tag labels applied to this custom entity record.
isFavoriteBoolean!True when the current authenticated user has marked this record as favorite. Per-user.
revisionIntRevision when entity was lastly changed.
viewerIdsPerSalesUnit[UUID!]!Filled only when a single record is read by its id; otherwise null or an empty list.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
CustomEntityEntityConnection object pageInfo: PageInfo!, edges: [CustomEntityEntityEdge]!, totalCount: Int

Paginated list of CustomEntity records.

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

A Relay edge containing a CustomEntityEntity and its cursor.

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

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

Input fieldTypeDescription
OR[CustomEntityFilterInput!]Matches records that meet at least one of the listed filters.
AND[CustomEntityFilterInput!]Matches records that meet all of the listed filters.
NOTCustomEntityFilterInputMatches 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.
currencyExchangeRatesListIdEntityFilterStringFieldId of the currency exchange rate list applied to this record.
nameEntityFilterStringFieldName of the entity and its default text representation.
ownerIdEntityFilterStringFieldId of the sales user who owns the custom entity record.
shareModeShareModeEnumFilterInputSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users).
tableNameEntityFilterStringFieldDiscriminator identifying which custom entity type this record belongs to. Read-only; matches CustomEntityType.entityApiName and is used as the entity name in REST and GraphQL queries.
typeIdEntityFilterStringFieldId of the custom entity type.
unitIdEntityFilterStringFieldId of the sales unit.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
withCustom[CustomField!]Conditions on custom fields, each identified by its api name. All listed conditions must match.
currencyExchangeRatesListCurrencyExchangeRatesListFilterInputCurrency exchange rate list used to convert monetary fields linked to this record. Empty to inherit the team space default. Matches records where a related record meets these conditions.
ownerClientFilterInputSales user who owns this custom entity record. Matches records where a related record meets these conditions.
typeCustomEntityTypeFilterInputCustom entity type that classifies this record. Custom entity types are configurable per team space and define the schema (fields and form) of the records. Matches records where a related record meets these conditions.
unitSalesUnitFilterInputSales unit this record is assigned to. Determines which team members can see the record under unit-based sharing. Matches records where a related record meets these conditions.
sharingUnitsCustomEntitySharingSalesUnitRelationFilterInputSales units that have been granted shared access to this custom entity record. Editable only when shareMode allows unit sharing. Matches records where a related record meets these conditions.
sharingClientsCustomEntitySharingClientRelationFilterInputUsers that have been granted shared access to this custom entity record. Editable only when shareMode allows user sharing. Matches records where a related record meets these conditions.
documentsCloudObjectRelationFilterInputDocuments linked to this custom entity record. Matches records where a related record meets these conditions.
staticProfilesProfileRelationFilterInputSaved view profiles this custom entity record currently matches. Matches records where a related record meets these conditions.
tagsTagRelationFilterInputTag labels applied to this custom entity record. Matches records where a related record meets these conditions.
CustomEntityOrderByInput input Asc or Desc per field

Sorting of CustomEntity 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.
currencyExchangeRatesList[CurrencyExchangeRatesListOrderByNestedInput!]Currency exchange rate list used to convert monetary fields linked to this record. Empty to inherit the team space default. Sorts by fields of the related record, listed in order of priority.
owner[ClientOrderByNestedInput!]Sales user who owns this custom entity record. Sorts by fields of the related record, listed in order of priority.
type[CustomEntityTypeOrderByNestedInput!]Custom entity type that classifies this record. Custom entity types are configurable per team space and define the schema (fields and form) of the records. Sorts by fields of the related record, listed in order of priority.
unit[SalesUnitOrderByNestedInput!]Sales unit this record is assigned to. Determines which team members can see the record under unit-based sharing. Sorts by fields of the related record, listed in order of priority.
currencyExchangeRatesListIdOrderByEnumId of the currency exchange rate list applied to this record.
nameOrderByEnumName of the entity and its default text representation.
ownerIdOrderByEnumId of the sales user who owns the custom entity record.
shareModeOrderByEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users).
typeIdOrderByEnumId of the custom entity type.
unitIdOrderByEnumId of the sales unit.
revisionOrderByEnumRevision when entity was lastly changed.
withCustomCommonEntityRepositoryOrderByCustomFieldSorts by a custom field.
ChangeOwnershipCustomEntityInput input 6 fields: ownerId, unitId, keepOwnerAsEditor, …

Parameters of the changeOwnershipCustomEntity mutation.

Input fieldTypeDescription
ownerIdID!User who becomes the new owner of the record.
unitIdID!Sales unit the record is assigned to.
keepOwnerAsEditorBoolean!When true, the previous owner (if still an active user) stays on the record as a shared user with the Editor role, and a Private sharing mode is switched to Standard.
transferLinkedRecordsBoolean!When true, the new owner and sales unit are also applied to the record's open tasks and appointments and its notes. Linked records that cannot be transferred are skipped without failing the mutation.
idID!Identifier of the CustomEntityEntity 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).
CopyCustomEntityInput input skipCopySuffix: Boolean, id: ID!, clientMutationId: String

Parameters of the copyCustomEntity mutation.

Input fieldTypeDescription
skipCopySuffixBooleanWhen true, the copy keeps the original name without the copy suffix. Defaults to false.
idID!Identifier of the CustomEntityEntity 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).
CreateCustomEntitySharingClientRelationNoCustomEntityBackrefInput input 5 fields: modified, created, clientId, …

Field values of a new CustomEntitySharingClientRelation record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
clientIdID!Id of the user.
roleSharingRoleEnumAccess the sharing gives the user on the custom entity record: Watcher can view it, Editor can view and edit it.
revisionIntRevision when entity was lastly changed.
CreateCustomEntitySharingSalesUnitRelationNoCustomEntityBackrefInput input 5 fields: modified, created, role, …

Field values of a new CustomEntitySharingSalesUnitRelation record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
roleSharingRoleEnumAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdID!Id of the sales unit.
revisionIntRevision when entity was lastly changed.
ManageSharingCustomEntityInput input 5 fields: shareMode, sharingClients, sharingUnits, …

Parameters of the manageSharingCustomEntity mutation.

Input fieldTypeDescription
shareModeShareModeEnum!Sharing mode of the record: Standard, Private, AllView or AllEdit.
sharingClients[CreateCustomEntitySharingClientRelationNoCustomEntityBackrefInput!]Users the record is shared with, each with the Watcher (view) or Editor (edit) role. Send an empty list to remove all shared users.
sharingUnits[CreateCustomEntitySharingSalesUnitRelationNoCustomEntityBackrefInput!]Sales units the record is shared with, each with the Watcher or Editor role. Send an empty list to remove all shared units.
idID!Identifier of the CustomEntityEntity 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).
ChangeOwnershipCustomEntityPayload object result: CustomEntityEntity, clientMutationId: String

Result of the changeOwnershipCustomEntity mutation.

FieldTypeDescription
resultCustomEntityEntityThe record with its new owner.
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).
CopyCustomEntityPayload object result: CustomEntityEntity, clientMutationId: String

Result of the copyCustomEntity mutation.

FieldTypeDescription
resultCustomEntityEntityThe new 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).
ManageSharingCustomEntityPayload object result: CustomEntityEntity, clientMutationId: String

Result of the manageSharingCustomEntity mutation.

FieldTypeDescription
resultCustomEntityEntityThe record with its updated sharing.
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).