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

GraphQLRepositoriesentityFitnessIndicator

entities.entityFitnessIndicator

Read entity fitness indicator records with the entityFitnessIndicator repository, and change them with the entity fitness indicator mutations. Same records as the REST EntityFitnessIndicators entity.

Queries

Fields of entities { entityFitnessIndicator { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
EntityFitnessIndicatorEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[EntityFitnessIndicatorEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: EntityFitnessIndicatorFilterInput, orderBy: [EntityFitnessIndicatorOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[EntityFitnessIndicatorEntity!]!
QUERYgetByCriteria(filter: EntityFitnessIndicatorFilterInput, orderBy: [EntityFitnessIndicatorOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
EntityFitnessIndicatorEntityConnection
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!]!

Mutations

KindMutationDoesReturns
MUTATIONcreateEntityFitnessIndicator(input: CreateEntityFitnessIndicatorInput!, validationLevel: [ValidationLevel!])Create one recordCreateEntityFitnessIndicatorPayload
MUTATIONupdateEntityFitnessIndicator(input: UpdateEntityFitnessIndicatorInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateEntityFitnessIndicatorPayload
MUTATIONbulkUpdateEntityFitnessIndicator(input: [CreateOrUpdateEntityFitnessIndicatorInput!]!, deleteInput: [DeleteEntityFitnessIndicatorInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateEntityFitnessIndicatorPayload
MUTATIONdeleteEntityFitnessIndicator(input: DeleteEntityFitnessIndicatorInput!)Soft-deleteDeleteEntityFitnessIndicatorPayload

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.

EntityFitnessIndicatorEntity object 18 fields: isDeleteProtected, id, isDeleted, …

Indicator of a fitness configuration: a rule that flags lead or opportunity records needing attention and suggests how to fix them.

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.
entityFitnessEntityFitnessEntityFitness configuration this indicator belongs to.
descriptionString!Description of what the indicator measures, shown in the UI.
descriptionUseLangBoolean!When true, description is treated as a translation key and localized in the UI.
entityFitnessIdID!Id of the fitness configuration.
howToFixString!Suggested remediation text shown to the user when a record triggers this indicator.
howToFixUseLangBoolean!When true, howToFix is treated as a translation key and localized in the UI.
isEnabledBoolean!When false, the indicator is configured but not evaluated for records.
nameString!Display name of the indicator.
nameUseLangBoolean!When true, name is treated as a translation key and localized in the UI; otherwise the literal text is shown.
settingsFitnessIndicatorSettings!Indicator 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
typeFitnessIndicatorTypeEnum!Rule 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.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
EntityFitnessIndicatorEntityConnection object pageInfo: PageInfo!, edges: [EntityFitnessIndicatorEntityEdge]!, totalCount: Int

Paginated list of EntityFitnessIndicator records.

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

A Relay edge containing a EntityFitnessIndicatorEntity and its cursor.

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

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

Input fieldTypeDescription
OR[EntityFitnessIndicatorFilterInput!]Matches records that meet at least one of the listed filters.
AND[EntityFitnessIndicatorFilterInput!]Matches records that meet all of the listed filters.
NOTEntityFitnessIndicatorFilterInputMatches 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.
descriptionEntityFilterStringFieldDescription of what the indicator measures, shown in the UI.
descriptionUseLangBooleanWhen true, description is treated as a translation key and localized in the UI.
entityFitnessIdEntityFilterStringFieldId of the fitness configuration.
howToFixEntityFilterStringFieldSuggested 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.
nameEntityFilterStringFieldDisplay name of the indicator.
nameUseLangBooleanWhen true, name is treated as a translation key and localized in the UI; otherwise the literal text is shown.
typeFitnessIndicatorTypeEnumFilterInputRule 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.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
entityFitnessEntityFitnessFilterInputFitness configuration this indicator belongs to. Matches records where a related record meets these conditions.
EntityFitnessIndicatorOrderByInput input Asc or Desc per field

Sorting of EntityFitnessIndicator 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.
entityFitness[EntityFitnessOrderByNestedInput!]Fitness configuration this indicator belongs to. Sorts by fields of the related record, listed in order of priority.
descriptionOrderByEnumDescription of what the indicator measures, shown in the UI.
descriptionUseLangOrderByEnumWhen true, description is treated as a translation key and localized in the UI.
entityFitnessIdOrderByEnumId of the fitness configuration.
howToFixOrderByEnumSuggested remediation text shown to the user when a record triggers this indicator.
howToFixUseLangOrderByEnumWhen true, howToFix is treated as a translation key and localized in the UI.
isEnabledOrderByEnumWhen false, the indicator is configured but not evaluated for records.
nameOrderByEnumDisplay name of the indicator.
nameUseLangOrderByEnumWhen true, name is treated as a translation key and localized in the UI; otherwise the literal text is shown.
typeOrderByEnumRule 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.
revisionOrderByEnumRevision when entity was lastly changed.
FitnessIndicatorTypeEnumFilterInput input eq: [FitnessIndicatorTypeEnum!], NOT: FitnessIndicatorTypeEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[FitnessIndicatorTypeEnum!]Matches any of the listed values.
NOTFitnessIndicatorTypeEnumFilterInputMatches values that do not meet this condition.
CreateEntityFitnessIndicatorInput input 14 fields: clientMutationId, modified, created, …

Field values of a new EntityFitnessIndicator 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.
descriptionString!Description of what the indicator measures, shown in the UI.
descriptionUseLangBoolean!When true, description is treated as a translation key and localized in the UI.
entityFitnessIdID!Id of the fitness configuration.
howToFixString!Suggested remediation text shown to the user when a record triggers this indicator.
howToFixUseLangBoolean!When true, howToFix is treated as a translation key and localized in the UI.
isEnabledBoolean!When false, the indicator is configured but not evaluated for records.
nameString!Display name of the indicator.
nameUseLangBoolean!When true, name is treated as a translation key and localized in the UI; otherwise the literal text is shown.
settingsFitnessIndicatorSettingsJSONString!Indicator 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
typeFitnessIndicatorTypeEnum!Rule 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.
CreateOrUpdateEntityFitnessIndicatorInput input 15 fields: clientMutationId, id, modified, …

Field values of an EntityFitnessIndicator record to create, or to update when its id is set.

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).
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.
entityFitnessIdIDId of the fitness configuration.
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.
DeleteEntityFitnessIndicatorInput input clientMutationId: String, id: ID!

Id of the EntityFitnessIndicator 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.
EntityFitnessOrderByNestedInput input 7 fields: id, isDeleted, modified, …

Sorting by a field of the related EntityFitness record. Set exactly one field in each item.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
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.
UpdateEntityFitnessIndicatorInput input 15 fields: clientMutationId, id, modified, …

Id of an EntityFitnessIndicator 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.
descriptionStringDescription of what the indicator measures, shown in the UI.
descriptionUseLangBooleanWhen true, description is treated as a translation key and localized in the UI.
entityFitnessIdIDId of the fitness configuration.
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.
BulkUpdateEntityFitnessIndicatorPayload object result: BulkUpdateResults!

Result of the bulkUpdateEntityFitnessIndicator mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateEntityFitnessIndicatorPayload object entityFitnessIndicator: EntityFitnessIndicatorEntity, clientMutationId: String

Result of the createEntityFitnessIndicator mutation.

FieldTypeDescription
entityFitnessIndicatorEntityFitnessIndicatorEntityThe 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).
DeleteEntityFitnessIndicatorPayload object entityFitnessIndicator: EntityFitnessIndicatorEntity, clientMutationId: String

Result of the deleteEntityFitnessIndicator mutation.

FieldTypeDescription
entityFitnessIndicatorEntityFitnessIndicatorEntityThe 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).
UpdateEntityFitnessIndicatorPayload object entityFitnessIndicator: EntityFitnessIndicatorEntity, clientMutationId: String

Result of the updateEntityFitnessIndicator mutation.

FieldTypeDescription
entityFitnessIndicatorEntityFitnessIndicatorEntityThe 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).
FitnessCustomRule object 6 fields: operator, formula, filterMainBox, …

Rule of a custom fitness indicator: filter conditions that raise a warning level when a record matches them.

FieldTypeDescription
operatorFilterGroupOperator!How the filter boxes combine — And or Or.
formulaStringOptional boolean formula combining the filter boxes by their number.
filterMainBoxMainFilterBox!Primary group of filter conditions.
filterSiblingBoxes[FilterBox!]!Additional condition groups, combined per operator/formula.
isEnabledBoolean!When false, this custom rule is configured but not evaluated for records.
stateWarningLevelEnum!Warning level raised when a record matches this rule: Notice, Warning, or Error.
FitnessIndicatorSettings object stepIds: [ID!], customRules: [FitnessCustomRule!], systemRules: [FitnessSystemRule!]

Settings of a fitness indicator: the sales steps it applies to and its rules per warning level.

FieldTypeDescription
stepIds[ID!]Sales steps this indicator applies to; when empty, it applies to all steps.
customRules[FitnessCustomRule!]User-defined filter rules for a custom indicator, one per warning level. Null for system indicators.
systemRules[FitnessSystemRule!]Threshold rules for a system indicator, one per warning level (Notice, Warning, Error). Null for custom indicators.
FitnessIndicatorTypeEnum enum Custom, LowEmailOutreach, LowEmailEngagement, TasksOverdue, NoFollowUp, ClosingDateOverdue, … (12 values)

Rule a lead or opportunity fitness indicator evaluates to raise a warning.

ValueDescription
CustomUser-defined filter conditions; each matching condition sets its configured warning level.
LowEmailOutreachToo few emails sent to the record, its accounts or contacts within the configured number of days.
LowEmailEngagementToo few emails received from the record, its accounts or contacts within the configured number of days.
TasksOverdueA related task is overdue by the configured number of days, optionally limited to selected task types.
NoFollowUpThe record has no scheduled activity, optionally limited to selected activity types.
ClosingDateOverdueThe opportunity's closing date is in the past.
SalesStepVelocityOverdueThe opportunity has stayed in its current sales step longer than the step's time frame.
SalesCycleOverdueThe opportunity is older than the configured number of days.
ManyClosingDateUpdatesThe opportunity's closing date has been changed at least the configured number of times.
MovedToPreviousStepThe opportunity was moved back to an earlier sales step than one it had already reached.
RankingDecreaseThe opportunity's ranking decreased within the configured period.
ValueDecreaseThe opportunity's value decreased within the configured period, by amount or percentage.
FitnessPeriodEnum enum CurrentWeek, LastTwoWeeks, CurrentMonth

Period over which a trend-based fitness indicator measures a decrease.

ValueDescription
CurrentWeekThe current calendar week.
LastTwoWeeksThe last two weeks.
CurrentMonthThe current calendar month.
FitnessSystemRule object 6 fields: isEnabled, state, value, …

Threshold of a built-in fitness indicator for one warning level.

FieldTypeDescription
isEnabledBoolean!When false, this threshold is configured but not evaluated for records.
stateWarningLevelEnum!Warning level reached when this threshold is met: Notice, Warning, or Error (Ok means no issue).
valueIntNumeric threshold the indicator compares against, interpreted per indicator type (for example a count or a percentage).
daysIntTime window in days over which the indicator is measured, when the indicator type uses one.
entityTypes[ID!]Activity or related entity types this threshold applies to, when the indicator type is scoped to specific types.
periodFitnessPeriodEnumPeriod over which a change is measured for trend-based indicators: current week, last two weeks, or current month.