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

GraphQLRepositoriesmessageRelation

entities.messageRelation

Read message relation records with the messageRelation repository, and change them with the message relation mutations. Same records as the REST MessageRelations entity.

Queries

Fields of entities { messageRelation { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
MessageRelationEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[MessageRelationEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: MessageRelationFilterInput, orderBy: [MessageRelationOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[MessageRelationEntity!]!
QUERYgetByCriteria(filter: MessageRelationFilterInput, orderBy: [MessageRelationOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
MessageRelationEntityConnection
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
MUTATIONcreateMessageRelation(input: CreateMessageRelationInput!, validationLevel: [ValidationLevel!])Create one recordCreateMessageRelationPayload
MUTATIONupdateMessageRelation(input: UpdateMessageRelationInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateMessageRelationPayload
MUTATIONbulkUpdateMessageRelation(input: [CreateOrUpdateMessageRelationInput!]!, deleteInput: [DeleteMessageRelationInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateMessageRelationPayload
MUTATIONdeleteMessageRelation(input: DeleteMessageRelationInput!)Soft-deleteDeleteMessageRelationPayload

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.

MessageRelationEntity object 23 fields: isDeleteProtected, id, isDeleted, …

Link between a message (email or memo) and a record such as an account, contact, lead or opportunity.

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 message is linked to, or empty when not linked to an account.
contactContactEntityContact the message is linked to, or empty when not linked to a contact.
customEntityCustomEntityEntityCustom entity record the message is linked to, or empty when not linked.
leadLeadEntityLead the message is linked to. Set when leadOpptyId resolves to a Lead; otherwise empty.
opptyOpportunityEntityOpportunity the message is linked to. Set when leadOpptyId resolves to an Opportunity; otherwise empty.
emailEmailEntityEmail side of the link. Set when messageId resolves to an Email; otherwise empty.
memoMemoEntityMemo side of the link. Set when messageId resolves to a Memo; otherwise empty.
projectProjectEntityProject the message is linked to, or empty when not linked.
quoteQuoteEntityQuote the message is linked to, or empty when not linked.
accountIdIDId of the linked account.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdID!Id of the email or memo on this link.
projectIdIDId of the linked project.
quoteIdIDId of the linked quote.
revisionIntRevision when entity was lastly changed.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
MessageRelationEntityConnection object pageInfo: PageInfo!, edges: [MessageRelationEntityEdge]!, totalCount: Int

Paginated list of MessageRelation records.

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

A Relay edge containing a MessageRelationEntity and its cursor.

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

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

Input fieldTypeDescription
OR[MessageRelationFilterInput!]Matches records that meet at least one of the listed filters.
AND[MessageRelationFilterInput!]Matches records that meet all of the listed filters.
NOTMessageRelationFilterInputMatches 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.
contactIdEntityFilterStringFieldId of the linked contact.
customEntityIdEntityFilterStringFieldId of the linked custom entity record.
leadOpptyIdEntityFilterStringFieldId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdEntityFilterStringFieldId of the email or memo on this link.
projectIdEntityFilterStringFieldId of the linked project.
quoteIdEntityFilterStringFieldId of the linked quote.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
accountAccountFilterInputAccount the message is linked to, or empty when not linked to an account. Matches records where a related record meets these conditions.
contactContactFilterInputContact the message is linked to, or empty when not linked to a contact. Matches records where a related record meets these conditions.
customEntityCustomEntityFilterInputCustom entity record the message is linked to, or empty when not linked. Matches records where a related record meets these conditions.
leadLeadFilterInputLead the message is linked to. Set when leadOpptyId resolves to a Lead; otherwise empty. Matches records where a related record meets these conditions.
opptyOpportunityFilterInputOpportunity the message is linked to. Set when leadOpptyId resolves to an Opportunity; otherwise empty. Matches records where a related record meets these conditions.
emailEmailFilterInputEmail side of the link. Set when messageId resolves to an Email; otherwise empty. Matches records where a related record meets these conditions.
memoMemoFilterInputMemo side of the link. Set when messageId resolves to a Memo; otherwise empty. Matches records where a related record meets these conditions.
projectProjectFilterInputProject the message is linked to, or empty when not linked. Matches records where a related record meets these conditions.
quoteQuoteFilterInputQuote the message is linked to, or empty when not linked. Matches records where a related record meets these conditions.
MessageRelationOrderByInput input Asc or Desc per field

Sorting of MessageRelation 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 message is linked to, or empty when not linked to an account. Sorts by fields of the related record, listed in order of priority.
contact[ContactOrderByNestedInput!]Contact the message 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 message is linked to, or empty when not linked. Sorts by fields of the related record, listed in order of priority.
lead[LeadOrderByNestedInput!]Lead the message 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 message is linked to. Set when leadOpptyId resolves to an Opportunity; otherwise empty. Sorts by fields of the related record, listed in order of priority.
email[EmailOrderByNestedInput!]Email side of the link. Set when messageId resolves to an Email; otherwise empty. Sorts by fields of the related record, listed in order of priority.
memo[MemoOrderByNestedInput!]Memo side of the link. Set when messageId resolves to a Memo; otherwise empty. Sorts by fields of the related record, listed in order of priority.
project[ProjectOrderByNestedInput!]Project the message is linked to, or empty when not linked. Sorts by fields of the related record, listed in order of priority.
quote[QuoteOrderByNestedInput!]Quote the message is linked to, or empty when not linked. Sorts by fields of the related record, listed in order of priority.
accountIdOrderByEnumId of the linked account.
contactIdOrderByEnumId of the linked contact.
customEntityIdOrderByEnumId of the linked custom entity record.
leadOpptyIdOrderByEnumId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdOrderByEnumId of the email or memo on this link.
projectIdOrderByEnumId of the linked project.
quoteIdOrderByEnumId of the linked quote.
revisionOrderByEnumRevision when entity was lastly changed.
CreateMessageRelationInput input 11 fields: clientMutationId, modified, created, …

Field values of a new MessageRelation 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.
accountIdIDId of the linked account.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdID!Id of the email or memo on this link.
projectIdIDId of the linked project.
quoteIdIDId of the linked quote.
revisionIntRevision when entity was lastly changed.
CreateOrUpdateMessageRelationInput input 12 fields: clientMutationId, id, modified, …

Field values of a MessageRelation 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.
accountIdIDId of the linked account.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdIDId of the email or memo on this link.
projectIdIDId of the linked project.
quoteIdIDId of the linked quote.
revisionIntRevision when entity was lastly changed.
DeleteMessageRelationInput input clientMutationId: String, id: ID!, leadOpptyId: ID, messageId: ID

Id of the MessageRelation 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.
leadOpptyIdIDId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdIDId of the email or memo on this link.
UpdateMessageRelationInput input 12 fields: clientMutationId, id, modified, …

Id of a MessageRelation 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.
accountIdIDId of the linked account.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadOpptyIdIDId of the lead or opportunity the message is linked to, or empty when not linked.
messageIdIDId of the email or memo on this link.
projectIdIDId of the linked project.
quoteIdIDId of the linked quote.
revisionIntRevision when entity was lastly changed.
BulkUpdateMessageRelationPayload object result: BulkUpdateResults!

Result of the bulkUpdateMessageRelation mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateMessageRelationPayload object messageRelation: MessageRelationEntity, clientMutationId: String

Result of the createMessageRelation mutation.

FieldTypeDescription
messageRelationMessageRelationEntityThe 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).
DeleteMessageRelationPayload object messageRelation: MessageRelationEntity, clientMutationId: String

Result of the deleteMessageRelation mutation.

FieldTypeDescription
messageRelationMessageRelationEntityThe 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).
UpdateMessageRelationPayload object messageRelation: MessageRelationEntity, clientMutationId: String

Result of the updateMessageRelation mutation.

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