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

GraphQLRepositoriesactivityRelation

entities.activityRelation

Read activity relation records with the activityRelation repository, and change them with the activity relation mutations. Same records as the REST ActivityRelations entity.

Queries

Fields of entities { activityRelation { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
ActivityRelationEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[ActivityRelationEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: ActivityRelationFilterInput, orderBy: [ActivityRelationOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[ActivityRelationEntity!]!
QUERYgetByCriteria(filter: ActivityRelationFilterInput, orderBy: [ActivityRelationOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
ActivityRelationEntityConnection
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
MUTATIONcreateActivityRelation(input: CreateActivityRelationInput!, validationLevel: [ValidationLevel!])Create one recordCreateActivityRelationPayload
MUTATIONupdateActivityRelation(input: UpdateActivityRelationInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateActivityRelationPayload
MUTATIONbulkUpdateActivityRelation(input: [CreateOrUpdateActivityRelationInput!]!, deleteInput: [DeleteActivityRelationInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateActivityRelationPayload
MUTATIONdeleteActivityRelation(input: DeleteActivityRelationInput!)Soft-deleteDeleteActivityRelationPayload

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.

ActivityRelationEntity object 26 fields: isDeleteProtected, id, isDeleted, …

Link of a task or an appointment to a record it concerns, such as an account, contact, lead, opportunity, project or quote.

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.
accountAccountEntityAccount the activity is linked to, or empty when not linked to an account.
appointmentAppointmentEntityAppointment side of the link. Set when activityId resolves to an Appointment; otherwise empty.
taskTaskEntityTask side of the link. Set when activityId resolves to a Task; otherwise empty.
contactContactEntityContact the activity is linked to, or empty when not linked to a contact.
customEntityCustomEntityEntityCustom entity record the activity is linked to, or empty.
leadLeadEntityLead the activity is linked to. Set when leadOpptyId resolves to a Lead; otherwise empty.
opptyOpportunityEntityOpportunity the activity is linked to. Set when leadOpptyId resolves to an Opportunity; otherwise empty.
projectProjectEntityProject the activity is linked to, or empty when not linked to a project.
projectObjectiveProjectObjectiveEntityProject objective the activity advances, or empty.
quoteQuoteEntityQuote the activity is linked to, or empty when not linked to a quote.
accountIdIDId of the linked account.
activityIdID!Id of the appointment or task on this link.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the activity is linked to, or empty when not linked.
projectIdIDId of the linked project.
projectObjectiveIdIDId of the project objective the activity advances, or empty when it is not linked to one.
quoteIdIDId of the linked quote.
sortOrderIntDisplay order of the activity within its project objective. Required only when projectId is set.
revisionIntRevision when entity was lastly changed.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
ActivityRelationEntityConnection object pageInfo: PageInfo!, edges: [ActivityRelationEntityEdge]!, totalCount: Int

Paginated list of ActivityRelation records.

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

A Relay edge containing a ActivityRelationEntity and its cursor.

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

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

Input fieldTypeDescription
OR[ActivityRelationFilterInput!]Matches records that meet at least one of the listed filters.
AND[ActivityRelationFilterInput!]Matches records that meet all of the listed filters.
NOTActivityRelationFilterInputMatches 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.
accountIdEntityFilterStringFieldId of the linked account.
activityIdEntityFilterStringFieldId of the appointment or task on this link.
contactIdEntityFilterStringFieldId of the linked contact.
customEntityIdEntityFilterStringFieldId of the linked custom entity record.
leadOpptyIdEntityFilterStringFieldId of the lead or opportunity the activity is linked to, or empty when not linked.
projectIdEntityFilterStringFieldId of the linked project.
projectObjectiveIdEntityFilterStringFieldId of the project objective the activity advances, or empty when it is not linked to one.
quoteIdEntityFilterStringFieldId of the linked quote.
sortOrderEntityFilterNumberFieldDisplay order of the activity within its project objective. Required only when projectId is set.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
accountAccountFilterInputAccount the activity is linked to, or empty when not linked to an account. Matches records where a related record meets these conditions.
appointmentAppointmentFilterInputAppointment side of the link. Set when activityId resolves to an Appointment; otherwise empty. Matches records where a related record meets these conditions.
taskTaskFilterInputTask side of the link. Set when activityId resolves to a Task; otherwise empty. Matches records where a related record meets these conditions.
contactContactFilterInputContact the activity is linked to, or empty when not linked to a contact. Matches records where a related record meets these conditions.
customEntityCustomEntityFilterInputCustom entity record the activity is linked to, or empty. Matches records where a related record meets these conditions.
leadLeadFilterInputLead the activity is linked to. Set when leadOpptyId resolves to a Lead; otherwise empty. Matches records where a related record meets these conditions.
opptyOpportunityFilterInputOpportunity the activity is linked to. Set when leadOpptyId resolves to an Opportunity; otherwise empty. Matches records where a related record meets these conditions.
projectProjectFilterInputProject the activity is linked to, or empty when not linked to a project. Matches records where a related record meets these conditions.
projectObjectiveProjectObjectiveFilterInputProject objective the activity advances, or empty. Matches records where a related record meets these conditions.
quoteQuoteFilterInputQuote the activity is linked to, or empty when not linked to a quote. Matches records where a related record meets these conditions.
ActivityRelationOrderByInput input Asc or Desc per field

Sorting of ActivityRelation 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.
account[AccountOrderByNestedInput!]Account the activity is linked to, or empty when not linked to an account. Sorts by fields of the related record, listed in order of priority.
appointment[AppointmentOrderByNestedInput!]Appointment side of the link. Set when activityId resolves to an Appointment; otherwise empty. Sorts by fields of the related record, listed in order of priority.
task[TaskOrderByNestedInput!]Task side of the link. Set when activityId resolves to a Task; otherwise empty. Sorts by fields of the related record, listed in order of priority.
contact[ContactOrderByNestedInput!]Contact the activity is linked to, or empty when not linked to a contact. Sorts by fields of the related record, listed in order of priority.
customEntity[CustomEntityOrderByNestedInput!]Custom entity record the activity is linked to, or empty. Sorts by fields of the related record, listed in order of priority.
lead[LeadOrderByNestedInput!]Lead the activity is linked to. Set when leadOpptyId resolves to a Lead; otherwise empty. Sorts by fields of the related record, listed in order of priority.
oppty[OpportunityOrderByNestedInput!]Opportunity the activity is linked to. Set when leadOpptyId resolves to an Opportunity; otherwise empty. Sorts by fields of the related record, listed in order of priority.
project[ProjectOrderByNestedInput!]Project the activity is linked to, or empty when not linked to a project. Sorts by fields of the related record, listed in order of priority.
projectObjective[ProjectObjectiveOrderByNestedInput!]Project objective the activity advances, or empty. Sorts by fields of the related record, listed in order of priority.
quote[QuoteOrderByNestedInput!]Quote the activity is linked to, or empty when not linked to a quote. Sorts by fields of the related record, listed in order of priority.
accountIdOrderByEnumId of the linked account.
activityIdOrderByEnumId of the appointment or task on this link.
contactIdOrderByEnumId of the linked contact.
customEntityIdOrderByEnumId of the linked custom entity record.
leadOpptyIdOrderByEnumId of the lead or opportunity the activity is linked to, or empty when not linked.
projectIdOrderByEnumId of the linked project.
projectObjectiveIdOrderByEnumId of the project objective the activity advances, or empty when it is not linked to one.
quoteIdOrderByEnumId of the linked quote.
sortOrderOrderByEnumDisplay order of the activity within its project objective. Required only when projectId is set.
revisionOrderByEnumRevision when entity was lastly changed.
CreateActivityRelationInput input 14 fields: clientMutationId, modified, created, …

Field values of a new ActivityRelation 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.
projectObjectiveCreateProjectObjectiveInputProject objective the activity advances, or empty.
accountIdIDId of the linked account.
activityIdID!Id of the appointment or task on this link.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the activity is linked to, or empty when not linked.
projectIdIDId of the linked project.
projectObjectiveIdIDId of the project objective the activity advances, or empty when it is not linked to one.
quoteIdIDId of the linked quote.
sortOrderIntDisplay order of the activity within its project objective. Required only when projectId is set.
revisionIntRevision when entity was lastly changed.
CreateOrUpdateActivityRelationInput input 15 fields: clientMutationId, id, modified, …

Field values of an ActivityRelation 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.
projectObjectiveCreateProjectObjectiveInputProject objective the activity advances, or empty.
accountIdIDId of the linked account.
activityIdIDId of the appointment or task on this link.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the activity is linked to, or empty when not linked.
projectIdIDId of the linked project.
projectObjectiveIdIDId of the project objective the activity advances, or empty when it is not linked to one.
quoteIdIDId of the linked quote.
sortOrderIntDisplay order of the activity within its project objective. Required only when projectId is set.
revisionIntRevision when entity was lastly changed.
DeleteActivityRelationInput input clientMutationId: String, id: ID!, activityId: ID, leadOpptyId: ID

Id of the ActivityRelation 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.
activityIdIDId of the appointment or task on this link.
leadOpptyIdIDId of the lead or opportunity the activity is linked to, or empty when not linked.
ProjectObjectiveOrderByNestedInput input 8 fields: id, isDeleted, modified, …

Sorting by a field of the related ProjectObjective 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.
nameOrderByEnumName of the entity and its default text representation.
projectIdOrderByEnumId of the project this objective belongs to. Set on create; cannot be changed afterwards.
sortOrderOrderByEnumPosition of the row within its sibling set; lower values appear first. The platform reorders neighbouring rows automatically when a value is inserted or changed.
revisionOrderByEnumRevision when entity was lastly changed.
UpdateActivityRelationInput input 15 fields: clientMutationId, id, modified, …

Id of an ActivityRelation 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.
projectObjectiveCreateProjectObjectiveInputProject objective the activity advances, or empty.
accountIdIDId of the linked account.
activityIdIDId of the appointment or task on this link.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the activity is linked to, or empty when not linked.
projectIdIDId of the linked project.
projectObjectiveIdIDId of the project objective the activity advances, or empty when it is not linked to one.
quoteIdIDId of the linked quote.
sortOrderIntDisplay order of the activity within its project objective. Required only when projectId is set.
revisionIntRevision when entity was lastly changed.
BulkUpdateActivityRelationPayload object result: BulkUpdateResults!

Result of the bulkUpdateActivityRelation mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateActivityRelationPayload object activityRelation: ActivityRelationEntity, clientMutationId: String

Result of the createActivityRelation mutation.

FieldTypeDescription
activityRelationActivityRelationEntityThe 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).
DeleteActivityRelationPayload object activityRelation: ActivityRelationEntity, clientMutationId: String

Result of the deleteActivityRelation mutation.

FieldTypeDescription
activityRelationActivityRelationEntityThe 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).
UpdateActivityRelationPayload object activityRelation: ActivityRelationEntity, clientMutationId: String

Result of the updateActivityRelation mutation.

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