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

GraphQLRepositoriestarget

entities.target

Read target records with the target repository, and change them with the target mutations. Same records as the REST Targets entity.

Queries

Fields of entities { target { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
TargetEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[TargetEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: TargetFilterInput, orderBy: [TargetOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[TargetEntity!]!
QUERYgetByCriteria(filter: TargetFilterInput, orderBy: [TargetOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
TargetEntityConnection
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
MUTATIONcreateTarget(input: CreateTargetInput!, validationLevel: [ValidationLevel!])Create one recordCreateTargetPayload
MUTATIONupdateTarget(input: UpdateTargetInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateTargetPayload
MUTATIONbulkUpdateTarget(input: [CreateOrUpdateTargetInput!]!, deleteInput: [DeleteTargetInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateTargetPayload
MUTATIONdeleteTarget(input: DeleteTargetInput!, deleteChildren: Boolean!)Soft-deleteDeleteTargetPayload
MUTATIONupdateDetailSettingsTarget(input: [UpdateTargetSettingsInput!]!)Updates the calculation settings of one or more targets: which indicators are included, whether the target value is locked, the chart granularity and the calculated and custom indicator values. GraphQL onlyUpdateDetailSettingsTargetPayload
MUTATIONactivateTarget(input: ActivateTargetInput!)Activates a draft target so its progress is tracked over the period computed from its period settings; activating a group target also activates its inactive user targets. GraphQL onlyActivateTargetPayload
MUTATIONbulkActivateUserTarget(input: BulkActivateUserTargetInput!)Activates several user targets at once, as activateTarget does for each. Group targets and targets that cannot be activated are skipped without an error. GraphQL onlyBulkActivateUserTargetPayload
MUTATIONfinishTarget(input: FinishTargetInput!)Finishes an active target early, ending its tracking as of today. Fails when the target is not active. GraphQL onlyFinishTargetPayload
MUTATIONbulkFinishUserTarget(input: BulkFinishUserTargetInput!)Finishes several active user targets at once, as finishTarget does for each. Group targets and targets that cannot be finished are skipped without an error. GraphQL onlyBulkFinishUserTargetPayload
MUTATIONcopyTarget(input: CopyTargetInput!)Copy a record GraphQL onlyCopyTargetPayload
MUTATIONremoveTarget(input: RemoveTargetInput!)Removes a user target from a group target. The user target itself is kept. GraphQL onlyRemoveTargetPayload
MUTATIONbulkRemoveTarget(input: BulkRemoveTargetInput!)Removes several user targets from their group targets at once. The user targets themselves are kept. GraphQL onlyBulkRemoveTargetPayload

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.

TargetEntity object 45 fields: isDeleteProtected, id, isDeleted, …

Sales target set for a user or a group of users for a period, measured by a chosen metric.

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.
currencyCurrencyEntityCurrency the target value is expressed in. Required when calculationType is a currency-based metric.
ownerClientEntityUser who owns the target.
targetClientClientEntityUser the target is set on (the assignee). Required for User-type targets; null for group targets.
calculationTypeTargetCalculationTypeEnumWhat the target measures: revenue from opportunities won, or the number of leads qualified or created in the target period.
currencyIdIDId of the target currency.
descriptionStringFree-text description shown alongside the target.
isActiveBoolean!When true, the target is currently being tracked; when false, the target is a draft or has been deactivated.
nameString!Name of the entity and its default text representation.
ownerIdID!Id of the owning user.
periodFromDateFirst date of the active target period. Set when isActive is true; recomputed from settings.period when activated.
periodToDateLast date of the active target period.
settingsTargetsSettings!Target configuration: period (year, quarter/month etc.), value, fragment breakdown and indicator inputs. Stored as a JSON document. This payload conforms to the TargetsSettings JSON Schema: GET /api/v100/rest/schemas/TargetsSettings.json on your region's API host
targetClientIdIDId of the assignee user.
typeTargetTypeEnumKind of target: a User target for targetClient, a group target that is split into or combines user targets, or a Simulated what-if target.
revisionIntRevision when entity was lastly changed.
targetFloatTarget value the user committed to for the current period.
virtualPeriodFromDateStart date of the target period, derived from periodType and periodYear.
virtualPeriodToDateEnd date of the target period, derived from periodType and periodYear.
daysLeftInt!Whole days remaining until the target period ends, or zero once the period is past.
statusTargetStatusEnumProgress state of the target: Draft until it is activated, then NotStarted before its period begins, InProgress while the period runs, and Finished once it is marked finished or the period has ended.
finishedDateDateDate the target was marked as finished. Empty until the target is closed.
estimatedTargetFloatProjected end-of-period value extrapolated from progress to date. Used to compare against the committed target.
periodYearInt!Calendar year the target period belongs to (e.g. 2026).
periodTypeTargetsPeriodTypeEnum!Whether the target period follows the calendar year (CalendarYear) or the space's financial year (FinancialYear). Combined with periodYear to determine virtualPeriodFrom / virtualPeriodTo.
hasParentGroupTargetBoolean!Returns if current target has any non-deleted parent group target.
childTargetsTargetRelationEntityConnection (8 args)User-level child targets that aggregate into this group target.
periodFragmentTypeTargetsPeriodFragmentTypeEnum!Length of the fragments the target period is split into: the whole year (Year), quarters (Quarter) or months (Month).
periodFragmentIndexInt!Zero-based position of the current fragment within the parent period (e.g. fragment index 2 for the 3rd month in a yearly target split into monthly fragments).
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
targetGoalInt! (1 args)Goal value to reach within the selected period; when the period covers only part of the target or forecast period, only the matching months count.
currentIndicatorsTargetsIndicators!Current sales performance indicators (qualification and win rates, deal size, sales cycle length) computed from the actual records in the target's scope.
currentMetrics[TargetsCurrentMetrics]! (1 args)Progress of the target per period part (year, quarters, months); for a group target the values of its member targets are combined.
currentTargetValueFloat! (1 args)Value achieved toward the target so far; for a group target, the sum over its member user targets.
chartData[TargetsUserChartData!]! (3 args)Values of the selected metric over the target period, one series per user target (one per member for a group target).
absolutePeriodTargetsAbsolutePeriodFirst and last day of the target period; null for group targets. An active target keeps the dates set on activation; a draft computes them from its period settings.
canUpdatePeriodTypeAndYearBoolean!Returns if period.type and period.year can be updated - Child of inactive group is dependent on the group
canUpdatePeriodFragmentTypeBoolean!Returns if period.fragmentType can be updated - Child of inactive group is dependent on the group!
canChangeFilterSettingsBoolean!Returns if settings.filter and settings.pipelineLeadProcessId can be changed - Child of inactive group is dependent on the group
canChangeTargetClientBoolean!Indicate if targetClient can be changed.
simulatedIndicatorsSimulatedTargetIndicators!Expected results (created, qualified and closed leads, won opportunities and amount) derived from the indicators set in the target's settings.
TargetEntityConnection object pageInfo: PageInfo!, edges: [TargetEntityEdge]!, totalCount: Int

Paginated list of Target records.

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

A Relay edge containing a TargetEntity and its cursor.

FieldTypeDescription
nodeTargetEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
TargetCalculationTypeEnumFilterInput input eq: [TargetCalculationTypeEnum!], NOT: TargetCalculationTypeEnumFilterInput

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

Input fieldTypeDescription
eq[TargetCalculationTypeEnum!]Matches any of the listed values.
NOTTargetCalculationTypeEnumFilterInputMatches values that do not meet this condition.
TargetFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

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

Input fieldTypeDescription
OR[TargetFilterInput!]Matches records that meet at least one of the listed filters.
AND[TargetFilterInput!]Matches records that meet all of the listed filters.
NOTTargetFilterInputMatches 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.
calculationTypeTargetCalculationTypeEnumFilterInputWhat the target measures: revenue from opportunities won, or the number of leads qualified or created in the target period.
currencyIdEntityFilterStringFieldId of the target currency.
descriptionEntityFilterStringFieldFree-text description shown alongside the target.
isActiveBooleanWhen true, the target is currently being tracked; when false, the target is a draft or has been deactivated.
nameEntityFilterStringFieldName of the entity and its default text representation.
ownerIdEntityFilterStringFieldId of the owning user.
targetClientIdEntityFilterStringFieldId of the assignee user.
typeTargetTypeEnumFilterInputKind of target: a User target for targetClient, a group target that is split into or combines user targets, or a Simulated what-if target.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
targetFloatTarget value the user committed to for the current period.
virtualPeriodFromDateStart date of the target period, derived from periodType and periodYear.
virtualPeriodToDateEnd date of the target period, derived from periodType and periodYear.
daysLeftIntWhole days remaining until the target period ends, or zero once the period is past.
statusTargetStatusEnumProgress state of the target: Draft until it is activated, then NotStarted before its period begins, InProgress while the period runs, and Finished once it is marked finished or the period has ended.
finishedDateDateDate the target was marked as finished. Empty until the target is closed.
estimatedTargetFloatProjected end-of-period value extrapolated from progress to date. Used to compare against the committed target.
periodYearIntCalendar year the target period belongs to (e.g. 2026).
periodTypeTargetsPeriodTypeEnumWhether the target period follows the calendar year (CalendarYear) or the space's financial year (FinancialYear). Combined with periodYear to determine virtualPeriodFrom / virtualPeriodTo.
hasParentGroupTargetBooleanTrue when this target is rolled up into a parent group target (e.g. a team-level target aggregating its members). Read-only.
periodFragmentTypeTargetsPeriodFragmentTypeEnumLength of the fragments the target period is split into: the whole year (Year), quarters (Quarter) or months (Month).
periodFragmentIndexIntZero-based position of the current fragment within the parent period (e.g. fragment index 2 for the 3rd month in a yearly target split into monthly fragments).
currencyCurrencyFilterInputCurrency the target value is expressed in. Required when calculationType is a currency-based metric. Matches records where a related record meets these conditions.
ownerClientFilterInputUser who owns the target. Matches records where a related record meets these conditions.
targetClientClientFilterInputUser the target is set on (the assignee). Required for User-type targets; null for group targets. Matches records where a related record meets these conditions.
childTargetsTargetRelationFilterInputUser-level child targets that aggregate into this group target. Matches records where a related record meets these conditions.
TargetOrderByInput input Asc or Desc per field

Sorting of Target 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.
owner[ClientOrderByNestedInput!]User who owns the target. Sorts by fields of the related record, listed in order of priority.
targetClient[ClientOrderByNestedInput!]User the target is set on (the assignee). Required for User-type targets; null for group targets. Sorts by fields of the related record, listed in order of priority.
calculationTypeOrderByEnumWhat the target measures: revenue from opportunities won, or the number of leads qualified or created in the target period.
descriptionOrderByEnumFree-text description shown alongside the target.
isActiveOrderByEnumWhen true, the target is currently being tracked; when false, the target is a draft or has been deactivated.
nameOrderByEnumName of the entity and its default text representation.
ownerIdOrderByEnumId of the owning user.
periodFromOrderByEnumFirst date of the active target period. Set when isActive is true; recomputed from settings.period when activated.
periodToOrderByEnumLast date of the active target period.
targetClientIdOrderByEnumId of the assignee user.
typeOrderByEnumKind of target: a User target for targetClient, a group target that is split into or combines user targets, or a Simulated what-if target.
revisionOrderByEnumRevision when entity was lastly changed.
targetOrderByEnumTarget value the user committed to for the current period.
virtualPeriodFromOrderByEnumStart date of the target period, derived from periodType and periodYear.
virtualPeriodToOrderByEnumEnd date of the target period, derived from periodType and periodYear.
daysLeftOrderByEnumWhole days remaining until the target period ends, or zero once the period is past.
statusOrderByEnumProgress state of the target: Draft until it is activated, then NotStarted before its period begins, InProgress while the period runs, and Finished once it is marked finished or the period has ended.
finishedDateOrderByEnumDate the target was marked as finished. Empty until the target is closed.
estimatedTargetOrderByEnumProjected end-of-period value extrapolated from progress to date. Used to compare against the committed target.
periodYearOrderByEnumCalendar year the target period belongs to (e.g. 2026).
periodTypeOrderByEnumWhether the target period follows the calendar year (CalendarYear) or the space's financial year (FinancialYear). Combined with periodYear to determine virtualPeriodFrom / virtualPeriodTo.
hasParentGroupTargetOrderByEnumTrue when this target is rolled up into a parent group target (e.g. a team-level target aggregating its members). Read-only.
periodFragmentTypeOrderByEnumLength of the fragments the target period is split into: the whole year (Year), quarters (Quarter) or months (Month).
periodFragmentIndexOrderByEnumZero-based position of the current fragment within the parent period (e.g. fragment index 2 for the 3rd month in a yearly target split into monthly fragments).
TargetTypeEnumFilterInput input eq: [TargetTypeEnum!], NOT: TargetTypeEnumFilterInput

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

Input fieldTypeDescription
eq[TargetTypeEnum!]Matches any of the listed values.
NOTTargetTypeEnumFilterInputMatches values that do not meet this condition.
ActivateTargetInput input id: UUID!, clientMutationId: String

Parameters of the activateTarget mutation.

Input fieldTypeDescription
idUUID!Target to activate.
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).
BulkActivateUserTargetInput input includedIds: [ID!]!, excludedIds: [ID!]!, sessionId: String, clientMutationId: String

Parameters of the bulkActivateUserTarget mutation.

Input fieldTypeDescription
includedIds[ID!]!Targets to activate, in addition to those taken from sessionId.
excludedIds[ID!]!Targets to leave out of the selection.
sessionIdStringId of an open list view whose records are added to the selection. Integrations can leave it empty.
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).
BulkFinishUserTargetInput input includedIds: [ID!]!, excludedIds: [ID!]!, sessionId: String, clientMutationId: String

Parameters of the bulkFinishUserTarget mutation.

Input fieldTypeDescription
includedIds[ID!]!Targets to finish, in addition to those taken from sessionId.
excludedIds[ID!]!Targets to leave out of the selection.
sessionIdStringId of an open list view whose records are added to the selection. Integrations can leave it empty.
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).
BulkRemoveTargetInput input groupChildIds: [GroupChildIdParams!]!, clientMutationId: String

Parameters of the bulkRemoveTarget mutation.

Input fieldTypeDescription
groupChildIds[GroupChildIdParams!]!Pairs of a group target (parentTargetId) and a user target to remove from it (childTargetId).
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).
CopyTargetInput input id: UUID!, name: String!, clientMutationId: String

Parameters of the copyTarget mutation.

Input fieldTypeDescription
idUUID!Target to copy.
nameString!Name of the new target.
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).
CreateOrUpdateTargetInput input 16 fields: clientMutationId, id, modified, …

Field values of a Target 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.
calculationTypeTargetCalculationTypeEnumWhat the target measures: revenue from opportunities won, or the number of leads qualified or created in the target period.
currencyIdIDId of the target currency.
descriptionStringFree-text description shown alongside the target.
isActiveBooleanWhen true, the target is currently being tracked; when false, the target is a draft or has been deactivated.
nameStringName of the entity and its default text representation.
ownerIdIDId of the owning user.
periodFromDateFirst date of the active target period. Set when isActive is true; recomputed from settings.period when activated.
periodToDateLast date of the active target period.
targetClientIdIDId of the assignee user.
typeTargetTypeEnumKind of target: a User target for targetClient, a group target that is split into or combines user targets, or a Simulated what-if target.
revisionIntRevision when entity was lastly changed.
childTargets[CreateTargetRelationNoGroupTargetBackrefInput!]User-level child targets that aggregate into this group target.
CreateTargetInput input 16 fields: name, description, targetClientIds, …

Field values of a new Target record.

Input fieldTypeDescription
nameString!Name of the target.
descriptionStringFree-text description shown alongside the target.
targetClientIds[UUID]Users the target is set on: the assignee of a User target, or the members of a GroupFromUser target, each of whom gets a user target of their own.
existingTargetsIds[UUID]User targets a GroupFromExisting target combines.
pipelineLeadProcessIdUUIDSales pipeline (revenue targets) or lead process (lead targets) whose records count toward the target.
currencyIdUUID!Currency the target value is expressed in.
filterFieldFilterParamsField conditions selecting which records count toward the target. Required for User and GroupFromUser targets unless fromSimulatedTargetId is set.
periodTargetsPeriodParams!Period the target applies to: a calendar or financial year, or one quarter or month of it.
ownerIdUUIDUser who owns a new target; defaults to the calling user. Not changed by updateTarget.
isActiveBoolean!When true, the target is created active. Only a GroupFromExisting target can be created active; other targets start as drafts.
targetTypeTargetTypeEnum!Kind of target: User, GroupFromUser (one user target per user in targetClientIds), GroupFromExisting (combines existingTargetsIds) or Simulated.
calculationTypeTargetCalculationTypeEnum!What the target measures: revenue from won opportunities, or the number of leads created or qualified.
fromSimulatedTargetIdUUIDSimulated target whose indicators the new User target takes over.
simulatedIndicatorsSimulatedTargetIndicatorsParamsExpected results the Simulated target is built from; required for Simulated targets.
targetValueFloatTarget value of a User target, overriding the value computed from the indicators.
targetClientTargetValues[Float]Target value of each user of a GroupFromUser target, in the order of targetClientIds.
CreateTargetRelationNoGroupTargetBackrefInput input modified: DateTime, created: DateTime, userTargetId: ID!, revision: Int

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

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
userTargetIdID!Id of the user target that rolls up into the group target.
revisionIntRevision when entity was lastly changed.
DeleteTargetInput input clientMutationId: String, id: ID!

Id of the Target 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.
FinishTargetInput input id: UUID!, applyToChildren: Boolean!, clientMutationId: String

Parameters of the finishTarget mutation.

Input fieldTypeDescription
idUUID!Target to finish.
applyToChildrenBoolean!For a group target, when true, also finishes its active user targets that are not finished yet.
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).
GroupChildIdParams input parentTargetId: UUID!, childTargetId: UUID!

Pair of a group target and one of its user targets.

Input fieldTypeDescription
parentTargetIdUUID!Group target the user target belongs to.
childTargetIdUUID!User target to remove from the group.
RemoveTargetInput input parentTargetId: UUID!, childTargetId: UUID!, clientMutationId: String

Parameters of the removeTarget mutation.

Input fieldTypeDescription
parentTargetIdUUID!Group target to remove the user target from.
childTargetIdUUID!User target to remove from the group.
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).
SimulatedTargetIndicatorsParams input 8 fields: target, leadClosedCount, leadCreatedCount, …

Expected results of a target derived from its indicators: leads created, qualified and closed, and opportunities closed, won and their value.

Input fieldTypeDescription
targetFloat!Target value: the won amount for revenue targets, or the number of leads to create or qualify for lead targets.
leadClosedCountIntExpected number of leads closed (qualified or lost) in the period.
leadCreatedCountIntExpected number of leads created in the period.
leadQualifiedCountIntExpected number of leads qualified in the period.
opportunityClosedCountIntExpected number of opportunities closed (won or lost) in the period.
opportunityWonCountIntExpected number of won opportunities in the period.
opportunityWonAmountFloatExpected value of the won opportunities in the period, in the target currency.
opportunityAverageVelocityFloatAverage rate at which opportunity value is won over time.
TargetsIndicatorsParams input 26 fields: target, leadQualificationRate, leadSalesTimeToQualify, …

Sales performance indicators of a target, such as lead qualification rate, average deal size, win rate and length of the sales cycle.

Input fieldTypeDescription
targetFloatTarget value to be reached over the period.
leadQualificationRateFloatShare of closed leads that were qualified, as a ratio.
leadSalesTimeToQualifyIntAverage number of days it takes for a lead to be qualified.
leadSalesTimeToLoseIntAverage number of days it takes for a lead to be lost.
leadClosedCountIntNumber of leads closed (qualified or lost) over the period.
opportunityAverageSizeFloatAverage monetary value of a won opportunity.
opportunityAverageVelocityFloatAverage rate at which opportunity value is won over time.
opportunityWinRateFloatShare of closed opportunities that were won, as a ratio.
opportunitySalesTimeToWinIntAverage number of days it takes for an opportunity to be won.
opportunitySalesTimeToLoseIntAverage number of days it takes for an opportunity to be lost.
opportunityClosedCountIntNumber of opportunities closed (won or lost) over the period.
leadAverageEngagementTimeIntAverage time, in minutes, spent engaging a lead.
opportunityAverageEngagementTimeIntAverage time, in minutes, spent engaging an opportunity.
workingHoursPerWeekIntNumber of working hours available per week.
nonSellingHoursPerWeekIntNumber of weekly working hours not spent selling (admin, meetings, etc.).
vacationDaysPerYearIntNumber of vacation days per year.
holidaysPerYearIntNumber of public holidays per year.
sickDaysPerYearIntExpected number of sick days per year.
leadAverageEngagementsBeforeQualifyLostFloatAverage number of engagements with a lead before it is qualified or lost.
leadAverageEngagementsBeforeQualifyFloatAverage number of engagements with a lead before it is qualified.
leadAverageEngagementsBeforeLostFloatAverage number of engagements with a lead before it is lost.
opptyAverageEngagementsBeforeWonLostFloatAverage number of engagements with an opportunity before it is won or lost.
opptyAverageEngagementsBeforeWonFloatAverage number of engagements with an opportunity before it is won.
opptyAverageEngagementsBeforeLostFloatAverage number of engagements with an opportunity before it is lost.
targetUserWorkingDaysTotalIntNumber of working days target user worked in company.
targetUserYearsInWorkIntNumber of years user has worked in company
TargetsPeriodParams input type: TargetsPeriodTypeEnum!, year: Int!, fragmentType: TargetsPeriodFragmentTypeEnum!, fragmentIndex: Int

Period of a sales target: a year, quarter or month of the calendar or financial year.

Input fieldTypeDescription
typeTargetsPeriodTypeEnum!Whether the period follows the CalendarYear (Jan 1) or the company FinancialYear start.
yearInt!Calendar or financial year the target applies to.
fragmentTypeTargetsPeriodFragmentTypeEnum!Granularity of the period within the year — Year, Quarter or Month.
fragmentIndexIntQuarter (1-4, counted from the start of the year) or calendar month (1-12, January = 1) the period covers; null when fragmentType is Year.
UpdateTargetInput input 10 fields: name, description, targetClientIds, …

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

Input fieldTypeDescription
nameString!Name of the target.
descriptionStringFree-text description shown alongside the target.
targetClientIds[UUID]Users the target is set on: the assignee of a User target, or the members of a GroupFromUser target, each of whom gets a user target of their own.
existingTargetsIds[UUID]User targets a GroupFromExisting target combines.
pipelineLeadProcessIdUUIDSales pipeline (revenue targets) or lead process (lead targets) whose records count toward the target.
currencyIdUUID!Currency the target value is expressed in.
filterFieldFilterParamsField conditions selecting which records count toward the target. Required for User and GroupFromUser targets unless fromSimulatedTargetId is set.
periodTargetsPeriodParams!Period the target applies to: a calendar or financial year, or one quarter or month of it.
ownerIdUUIDUser who owns a new target; defaults to the calling user. Not changed by updateTarget.
idUUID!Id of the target to update.
UpdateTargetSettingsInput input 7 fields: id, leadsEnabled, workingTimeEnabled, …

Parameters of the updateDetailSettingsTarget mutation.

Input fieldTypeDescription
idUUID!Id of the target to update.
leadsEnabledBoolean!When true, lead indicators are included in the target calculation.
workingTimeEnabledBoolean!When true, working-time indicators (working hours, vacation, holidays, sick days) are included in the target calculation.
targetValueLockedBoolean!When true, the target value is fixed and not recomputed from the indicators.
chartGranularityTargetsChartGranularityEnum!Granularity at which target progress is charted.
calculatedIndicatorsTargetsIndicatorsParams!Indicator values computed from historical data, used as defaults.
customIndicatorsTargetsIndicatorsParams!User-overridden indicator values; each set value takes precedence over the corresponding calculated indicator.
ActivateTargetPayload object target: TargetEntity, clientMutationId: String

Result of the activateTarget mutation.

FieldTypeDescription
targetTargetEntityThe activated target.
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).
BulkActivateUserTargetPayload object clientMutationId: String

Result of the bulkActivateUserTarget mutation.

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).
BulkFinishUserTargetPayload object clientMutationId: String

Result of the bulkFinishUserTarget mutation.

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).
BulkRemoveTargetPayload object clientMutationId: String

Result of the bulkRemoveTarget mutation.

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).
BulkUpdateTargetPayload object result: BulkUpdateResults!

Result of the bulkUpdateTarget mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CopyTargetPayload object target: TargetEntity, clientMutationId: String

Result of the copyTarget mutation.

FieldTypeDescription
targetTargetEntityThe new draft target.
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).
CreateTargetPayload object target: TargetEntity

Result of the createTarget mutation.

FieldTypeDescription
targetTargetEntityThe created record.
DeleteTargetPayload object target: TargetEntity, clientMutationId: String

Result of the deleteTarget mutation.

FieldTypeDescription
targetTargetEntityThe 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).
FinishTargetPayload object target: TargetEntity, clientMutationId: String

Result of the finishTarget mutation.

FieldTypeDescription
targetTargetEntityThe finished target.
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).
RemoveTargetPayload object clientMutationId: String

Result of the removeTarget mutation.

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).
UpdateDetailSettingsTargetPayload object result: [TargetEntity!]!

Result of the updateDetailSettingsTarget mutation.

FieldTypeDescription
result[TargetEntity!]!The updated targets.
UpdateTargetPayload object target: TargetEntity

Result of the updateTarget mutation.

FieldTypeDescription
targetTargetEntityThe updated record.
SimulatedTargetIndicators object 8 fields: target, leadClosedCount, leadCreatedCount, …

Expected results of a target derived from its indicators: leads created, qualified and closed, and opportunities closed, won and their value.

FieldTypeDescription
targetFloat!Target value: the won amount for revenue targets, or the number of leads to create or qualify for lead targets.
leadClosedCountIntExpected number of leads closed (qualified or lost) in the period.
leadCreatedCountIntExpected number of leads created in the period.
leadQualifiedCountIntExpected number of leads qualified in the period.
opportunityClosedCountIntExpected number of opportunities closed (won or lost) in the period.
opportunityWonCountIntExpected number of won opportunities in the period.
opportunityWonAmountFloatExpected value of the won opportunities in the period, in the target currency.
opportunityAverageVelocityFloatAverage rate at which opportunity value is won over time.
TargetCalculationTypeEnum enum Revenue, LeadQualified, LeadCreated

What a target measures.

ValueDescription
RevenueValue of opportunities won in the target period.
LeadQualifiedNumber of leads qualified in the target period.
LeadCreatedNumber of leads created in the target period.
TargetsAbsolutePeriod object periodFrom: Date!, periodTo: Date!

Start and end dates of a target's period.

FieldTypeDescription
periodFromDate!First day of the target period.
periodToDate!Last day of the target period.
TargetsChartGranularityEnum enum Yearly, Quarterly, Monthly, Weekly, Daily

Interval between data points on a target progress chart.

ValueDescription
YearlyOne data point per year.
QuarterlyOne data point per quarter.
MonthlyOne data point per month.
WeeklyOne data point per week.
DailyOne data point per day.
TargetsChartValue object date: Date!, index: Int!, value: Float!

Value of a target metric in one step of a target chart.

FieldTypeDescription
dateDate!Start date of the chart step.
indexInt!Number of the step: the month (1-12) for Monthly, the week number for Weekly, otherwise its position starting at 1.
valueFloat!Metric value in the step; 0 when there is none.
TargetsCurrentMetrics object 10 fields: relativeRate, period, periodIndex, …

Progress of a target in one part of its period (the year, a quarter, month or week): the lead and opportunity counts and values achieved so far.

FieldTypeDescription
relativeRateFloat!Share of the working time of the period that has elapsed as of today, from 0 to 1.
periodTargetsMetricPeriodEnumPart of the target period the metrics cover: the year, or the current quarter, month or week.
periodIndexInt!Number of the covered part: the year for Year, 1-4 for Quarter, 1-12 for Month, or the week number within the target year for Week.
quotaFloatValue of the won opportunities closed in the period, in the target currency; revenue targets only.
leadsNewIntNumber of leads created in the period.
leadsQualifiedIntNumber of leads qualified in the period.
opportunitiesWonIntNumber of won opportunities closed in the period; revenue targets only.
opportunitiesNewIntNumber of opportunities created in the period; revenue targets only.
unweightedTargetFloatTotal value of open and won opportunities closing in the period, in the target currency; revenue targets only.
unweightedTargetByVelocityFloatCurrently the same value as unweightedTarget; revenue targets only.
TargetsIndicators object 26 fields: target, leadQualificationRate, leadSalesTimeToQualify, …

Sales performance indicators of a target, such as lead qualification rate, average deal size, win rate and length of the sales cycle.

FieldTypeDescription
targetFloatTarget value to be reached over the period.
leadQualificationRateFloatShare of closed leads that were qualified, as a ratio.
leadSalesTimeToQualifyIntAverage number of days it takes for a lead to be qualified.
leadSalesTimeToLoseIntAverage number of days it takes for a lead to be lost.
leadClosedCountIntNumber of leads closed (qualified or lost) over the period.
opportunityAverageSizeFloatAverage monetary value of a won opportunity.
opportunityAverageVelocityFloatAverage rate at which opportunity value is won over time.
opportunityWinRateFloatShare of closed opportunities that were won, as a ratio.
opportunitySalesTimeToWinIntAverage number of days it takes for an opportunity to be won.
opportunitySalesTimeToLoseIntAverage number of days it takes for an opportunity to be lost.
opportunityClosedCountIntNumber of opportunities closed (won or lost) over the period.
leadAverageEngagementTimeIntAverage time, in minutes, spent engaging a lead.
opportunityAverageEngagementTimeIntAverage time, in minutes, spent engaging an opportunity.
workingHoursPerWeekIntNumber of working hours available per week.
nonSellingHoursPerWeekIntNumber of weekly working hours not spent selling (admin, meetings, etc.).
vacationDaysPerYearIntNumber of vacation days per year.
holidaysPerYearIntNumber of public holidays per year.
sickDaysPerYearIntExpected number of sick days per year.
leadAverageEngagementsBeforeQualifyLostFloatAverage number of engagements with a lead before it is qualified or lost.
leadAverageEngagementsBeforeQualifyFloatAverage number of engagements with a lead before it is qualified.
leadAverageEngagementsBeforeLostFloatAverage number of engagements with a lead before it is lost.
opptyAverageEngagementsBeforeWonLostFloatAverage number of engagements with an opportunity before it is won or lost.
opptyAverageEngagementsBeforeWonFloatAverage number of engagements with an opportunity before it is won.
opptyAverageEngagementsBeforeLostFloatAverage number of engagements with an opportunity before it is lost.
targetUserWorkingDaysTotalIntNumber of working days target user worked in company.
targetUserYearsInWorkIntNumber of years user has worked in company
TargetsMetricEnum enum Quota, LeadsNew, LeadsQualified, OpportunitiesWon, OpportunitiesNew, UnweightedTarget, UnweightedTargetByVelocity

Metric reported for a target over its periods and used for drill-down.

ValueDescription
QuotaValue of won opportunities closing within the period.
LeadsNewNumber of leads created.
LeadsQualifiedNumber of leads qualified.
OpportunitiesWonNumber of won opportunities closing within the period.
OpportunitiesNewNumber of opportunities created directly.
UnweightedTargetFull value of open and won opportunities closing within the period.
UnweightedTargetByVelocityFull value of open and won opportunities closing within the period, as used for the velocity projection.
TargetsMetricPeriodEnum enum Year, Quarter, Month, Week

Period length used when breaking target metrics down.

ValueDescription
YearTargets are broken down by year.
QuarterTargets are broken down by quarter.
MonthTargets are broken down by month.
WeekTargets are broken down by week.
TargetsPeriod object type: TargetsPeriodTypeEnum!, year: Int!, fragmentType: TargetsPeriodFragmentTypeEnum!, fragmentIndex: Int

Period of a sales target: a year, quarter or month of the calendar or financial year.

FieldTypeDescription
typeTargetsPeriodTypeEnum!Whether the period follows the CalendarYear (Jan 1) or the company FinancialYear start.
yearInt!Calendar or financial year the target applies to.
fragmentTypeTargetsPeriodFragmentTypeEnum!Granularity of the period within the year — Year, Quarter or Month.
fragmentIndexIntQuarter (1-4, counted from the start of the year) or calendar month (1-12, January = 1) the period covers; null when fragmentType is Year.
TargetsPeriodFragmentTypeEnum enum Year, Quarter, Month

Length of the fragments a target period is split into.

ValueDescription
YearThe whole year is one fragment.
QuarterThe year is split into quarters.
MonthThe year is split into months.
TargetsPeriodTypeEnum enum CalendarYear, FinancialYear

Year basis a target period follows.

ValueDescription
CalendarYearPeriods follow the calendar year starting on 1 January.
FinancialYearPeriods follow the space's financial year.
TargetsSettings object 9 fields: leadsEnabled, workingTimeEnabled, targetValueLocked, …

Settings of a sales target: its period, the records it covers and the indicators its value is calculated from.

FieldTypeDescription
leadsEnabledBoolean!When true, lead indicators are included in the target calculation.
workingTimeEnabledBoolean!When true, working-time indicators (working hours, vacation, holidays, sick days) are included in the target calculation.
targetValueLockedBoolean!When true, the target value is fixed and not recomputed from the indicators.
periodTargetsPeriod!Time period the target applies to.
filterFieldFilterField-condition filter selecting which records contribute to the target. The main box entity must be LeadOppty for Revenue and LeadQualified targets, and Lead (or LeadOppty) for LeadCreated targets; other entities are rejected.
pipelineLeadProcessIdUUIDEither pipelineId or leadProcessId depending on type of Target.
chartGranularityTargetsChartGranularityEnum!Granularity at which target progress is charted — Yearly, Quarterly, Monthly, Weekly or Daily.
calculatedIndicatorsTargetsIndicators!Indicator values computed from historical data, used as defaults.
customIndicatorsTargetsIndicators!User-overridden indicator values; each set value takes precedence over the corresponding calculated indicator.
TargetStatusEnum enum Draft, NotStarted, InProgress, Finished

Progress state of a target.

ValueDescription
DraftThe target has not been activated yet.
NotStartedThe target is active but its period has not begun.
InProgressThe target is active and its period is running.
FinishedThe target was marked finished or its period has ended.
TargetsUserChartData object targetId: UUID!, values: [TargetsChartValue!]!

Chart series of one user target: the values of a metric over the target period.

FieldTypeDescription
targetIdUUID!Id of the user target the series belongs to.
values[TargetsChartValue!]!Metric values, one per chart step over the target period.
TargetTypeEnum enum User, GroupFromUser, GroupFromExisting, Simulated

Kind of sales target.

ValueDescription
UserTarget assigned to a single user.
GroupFromUserGroup target that defines the settings and is split into user targets for its members.
GroupFromExistingGroup target that combines existing user targets.
SimulatedWhat-if target used to simulate the activity needed to reach a goal.