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

GraphQLRepositoriestargetRelation

entities.targetRelation

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

Queries

Fields of entities { targetRelation { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
TargetRelationEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[TargetRelationEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: TargetRelationFilterInput, orderBy: [TargetRelationOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[TargetRelationEntity!]!
QUERYgetByCriteria(filter: TargetRelationFilterInput, orderBy: [TargetRelationOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
TargetRelationEntityConnection
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
MUTATIONcreateTargetRelation(input: CreateTargetRelationInput!, validationLevel: [ValidationLevel!])Create one recordCreateTargetRelationPayload
MUTATIONupdateTargetRelation(input: UpdateTargetRelationInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateTargetRelationPayload
MUTATIONbulkUpdateTargetRelation(input: [CreateOrUpdateTargetRelationInput!]!, deleteInput: [DeleteTargetRelationInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateTargetRelationPayload
MUTATIONdeleteTargetRelation(input: DeleteTargetRelationInput!)Soft-deleteDeleteTargetRelationPayload

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.

TargetRelationEntity object 11 fields: isDeleteProtected, id, isDeleted, …

Link between a group target and a user target that rolls up into it.

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.
groupTargetTargetEntityParent group target that aggregates the user target.
userTargetTargetEntityChild user target rolling up into the group target.
groupTargetIdID!Id of the parent group target that aggregates the user target.
userTargetIdID!Id of the user target that rolls up into the group target.
revisionIntRevision when entity was lastly changed.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
TargetRelationEntityConnection object pageInfo: PageInfo!, edges: [TargetRelationEntityEdge]!, totalCount: Int

Paginated list of TargetRelation records.

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

A Relay edge containing a TargetRelationEntity and its cursor.

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

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

Input fieldTypeDescription
OR[TargetRelationFilterInput!]Matches records that meet at least one of the listed filters.
AND[TargetRelationFilterInput!]Matches records that meet all of the listed filters.
NOTTargetRelationFilterInputMatches 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.
groupTargetIdEntityFilterStringFieldId of the parent group target that aggregates the user target.
userTargetIdEntityFilterStringFieldId of the user target that rolls up into the group target.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
groupTargetTargetFilterInputParent group target that aggregates the user target. Matches records where a related record meets these conditions.
userTargetTargetFilterInputChild user target rolling up into the group target. Matches records where a related record meets these conditions.
TargetRelationOrderByInput input Asc or Desc per field

Sorting of TargetRelation 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.
groupTarget[TargetOrderByNestedInput!]Parent group target that aggregates the user target. Sorts by fields of the related record, listed in order of priority.
userTarget[TargetOrderByNestedInput!]Child user target rolling up into the group target. Sorts by fields of the related record, listed in order of priority.
groupTargetIdOrderByEnumId of the parent group target that aggregates the user target.
userTargetIdOrderByEnumId of the user target that rolls up into the group target.
revisionOrderByEnumRevision when entity was lastly changed.
CreateOrUpdateTargetRelationInput input 7 fields: clientMutationId, id, modified, …

Field values of a TargetRelation 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.
groupTargetIdIDId of the parent group target that aggregates the user target.
userTargetIdIDId of the user target that rolls up into the group target.
revisionIntRevision when entity was lastly changed.
CreateTargetRelationInput input 6 fields: clientMutationId, modified, created, …

Field values of a new TargetRelation 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.
groupTargetIdID!Id of the parent group target that aggregates the user target.
userTargetIdID!Id of the user target that rolls up into the group target.
revisionIntRevision when entity was lastly changed.
DeleteTargetRelationInput input clientMutationId: String, id: ID!

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

Sorting by a field of the related Target 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.
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).
UpdateTargetRelationInput input 7 fields: clientMutationId, id, modified, …

Id of a TargetRelation 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.
groupTargetIdIDId of the parent group target that aggregates the user target.
userTargetIdIDId of the user target that rolls up into the group target.
revisionIntRevision when entity was lastly changed.
BulkUpdateTargetRelationPayload object result: BulkUpdateResults!

Result of the bulkUpdateTargetRelation mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateTargetRelationPayload object targetRelation: TargetRelationEntity, clientMutationId: String

Result of the createTargetRelation mutation.

FieldTypeDescription
targetRelationTargetRelationEntityThe 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).
DeleteTargetRelationPayload object targetRelation: TargetRelationEntity, clientMutationId: String

Result of the deleteTargetRelation mutation.

FieldTypeDescription
targetRelationTargetRelationEntityThe 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).
UpdateTargetRelationPayload object targetRelation: TargetRelationEntity, clientMutationId: String

Result of the updateTargetRelation mutation.

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