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

GraphQLRepositoriesentityFitness

entities.entityFitness

Read entity fitness records with the entityFitness repository, and change them with the entity fitness mutations. Same records as the REST EntityFitnesses entity.

Queries

Fields of entities { entityFitness { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
EntityFitnessEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[EntityFitnessEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: EntityFitnessFilterInput, orderBy: [EntityFitnessOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[EntityFitnessEntity!]!
QUERYgetByCriteria(filter: EntityFitnessFilterInput, orderBy: [EntityFitnessOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
EntityFitnessEntityConnection
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!]!
QUERYgetByEntityType(entityType: EntityNameEnum!, entityTypeId: UUID!)
Returns the fitness configuration of a lead type or opportunity type.
EntityFitnessEntity!

Mutations

KindMutationDoesReturns
MUTATIONupdateEntityFitness(input: UpdateEntityFitnessInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateEntityFitnessPayload

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.

EntityFitnessEntity object 14 fields: isDeleteProtected, id, isDeleted, …

Fitness configuration of a lead or opportunity type: the indicators that flag records of that type needing attention.

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.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
leadTypeLeadTypeEntityLead type this fitness configuration applies to. Set when configuring fitness for leads.
opptyTypeOpportunityTypeEntityOpportunity type this fitness configuration applies to. Set when configuring fitness for opportunities.
leadTypeIdIDId of the lead type this fitness configuration applies to. Set when configuring fitness for leads.
opptyTypeIdIDId of the opportunity type.
revisionIntRevision when entity was lastly changed.
indicatorRelationsEntityFitnessIndicatorEntityConnection (7 args)Fitness indicators (system or custom rules) defined for this configuration.
entityTypeIdUUID!Id of the lead or opportunity type this fitness configuration applies to.
entityTypeBaseEntityTypeEnum!Entity kind this fitness configuration applies to (Lead or Opportunity). Derived from whichever of leadType/opptyType is set.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
EntityFitnessEntityConnection object pageInfo: PageInfo!, edges: [EntityFitnessEntityEdge]!, totalCount: Int

Paginated list of EntityFitness records.

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

A Relay edge containing a EntityFitnessEntity and its cursor.

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

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

Input fieldTypeDescription
OR[EntityFitnessFilterInput!]Matches records that meet at least one of the listed filters.
AND[EntityFitnessFilterInput!]Matches records that meet all of the listed filters.
NOTEntityFitnessFilterInputMatches 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.
leadTypeIdEntityFilterStringFieldId of the lead type this fitness configuration applies to. Set when configuring fitness for leads.
opptyTypeIdEntityFilterStringFieldId of the opportunity type.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
entityTypeIdUUIDId of the lead or opportunity type this fitness configuration applies to.
entityTypeBaseEntityTypeEnumEntity kind this fitness configuration applies to (Lead or Opportunity). Derived from whichever of leadType/opptyType is set.
leadTypeLeadTypeFilterInputLead type this fitness configuration applies to. Set when configuring fitness for leads. Matches records where a related record meets these conditions.
opptyTypeOpportunityTypeFilterInputOpportunity type this fitness configuration applies to. Set when configuring fitness for opportunities. Matches records where a related record meets these conditions.
indicatorRelationsEntityFitnessIndicatorFilterInputFitness indicators (system or custom rules) defined for this configuration. Matches records where a related record meets these conditions.
EntityFitnessOrderByInput input Asc or Desc per field

Sorting of EntityFitness 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.
leadType[LeadTypeOrderByNestedInput!]Lead type this fitness configuration applies to. Set when configuring fitness for leads. Sorts by fields of the related record, listed in order of priority.
opptyType[OpportunityTypeOrderByNestedInput!]Opportunity type this fitness configuration applies to. Set when configuring fitness for opportunities. Sorts by fields of the related record, listed in order of priority.
leadTypeIdOrderByEnumId of the lead type this fitness configuration applies to. Set when configuring fitness for leads.
opptyTypeIdOrderByEnumId of the opportunity type.
revisionOrderByEnumRevision when entity was lastly changed.
CreateOrUpdateEntityFitnessIndicatorNoEntityFitnessBackrefInput input 13 fields: id, modified, created, …

Field values of an EntityFitnessIndicator record to create, or to update when its id is set, together with the record it belongs to.

Input fieldTypeDescription
idIDUnique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
descriptionStringDescription of what the indicator measures, shown in the UI.
descriptionUseLangBooleanWhen true, description is treated as a translation key and localized in the UI.
howToFixStringSuggested remediation text shown to the user when a record triggers this indicator.
howToFixUseLangBooleanWhen true, howToFix is treated as a translation key and localized in the UI.
isEnabledBooleanWhen false, the indicator is configured but not evaluated for records.
nameStringDisplay name of the indicator.
nameUseLangBooleanWhen true, name is treated as a translation key and localized in the UI; otherwise the literal text is shown.
settingsFitnessIndicatorSettingsJSONStringIndicator rules. For system indicators contains three thresholds (Notice, Warning, Error); for custom indicators contains user-defined filter rules. This payload conforms to the FitnessIndicatorSettings JSON Schema: GET /api/v100/rest/schemas/FitnessIndicatorSettings.json on your region's API host
typeFitnessIndicatorTypeEnumRule the indicator evaluates. Custom indicators use user-defined filter rules and can be deleted; all other values are built-in system indicators with three threshold rules in settings that cannot be deleted.
revisionIntRevision when entity was lastly changed.
UpdateEntityFitnessInput input 6 fields: clientMutationId, id, modified, …

Id of an EntityFitness 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.
revisionIntRevision when entity was lastly changed.
indicatorRelations[CreateOrUpdateEntityFitnessIndicatorNoEntityFitnessBackrefInput!]Fitness indicators (system or custom rules) defined for this configuration.
UpdateEntityFitnessPayload object entityFitness: EntityFitnessEntity, clientMutationId: String

Result of the updateEntityFitness mutation.

FieldTypeDescription
entityFitnessEntityFitnessEntityThe 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).