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

GraphQLRepositoriesleadOppty

entities.leadOppty

Read lead oppty records with the leadOppty repository, and change them with the lead oppty mutations. Same records as the REST LeadOppties entity.

Queries

Fields of entities { leadOppty { … } }.

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

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.

LeadOpptyEntity object 6 fields: customFields, pendingScheduledActions, isDeleteProtected, …

Lead or opportunity, with the fields both kinds of sales records share.

FieldTypeDescription
customFieldsJSONString! (1 args)Values of the record's custom fields as a JSON object keyed by custom field apiName (camelCase).
pendingScheduledActionsIntFilled only when a single record is read by its id; otherwise null or an empty list.
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.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
fields[InterfaceFieldData]! (2 args)Values of the fields shown in the record's preview pane, as configured for the record's type.
LeadOpptyEntityConnection object pageInfo: PageInfo!, edges: [LeadOpptyEntityEdge]!, totalCount: Int

Paginated list of LeadOppty records.

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

A Relay edge containing a LeadOpptyEntity and its cursor.

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

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

Input fieldTypeDescription
OR[LeadOpptyFilterInput!]Matches records that meet at least one of the listed filters.
AND[LeadOpptyFilterInput!]Matches records that meet all of the listed filters.
NOTLeadOpptyFilterInputMatches 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.
relatedEntities[EntityFilterRelatedField]Matches records related to at least one of the listed records.
LeadOpptyOrderByInput input Asc or Desc per field

Sorting of LeadOppty 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.
relatedEntitiesCommonEntityRepositoryOrderByEntityRelationFieldSorts records by whether they are related to the listed records.
ReactivateLeadOpptyInput input id: UUID!, closingDate: Date, clientMutationId: String

Parameters of the reactivateLeadOppty mutation.

Input fieldTypeDescription
idUUID!Id of the archived lead or opportunity.
closingDateDateNew expected closing date of a reactivated opportunity; when empty, the current closing date is kept. Not allowed for a lead.
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).
ReactivateLeadOpptyPayload object result: LeadOpportunityEntity, clientMutationId: String

Result of the reactivateLeadOppty mutation.

FieldTypeDescription
resultLeadOpportunityEntityThe reactivated lead or opportunity.
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).
LeadOpportunityEntity union LeadEntity | OpportunityEntity

Either a lead or an opportunity.