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

GraphQLRepositoriesopportunityType

entities.opportunityType

Read opportunity type records with the opportunityType repository, and change them with the opportunity type mutations. Same records as the REST OpportunityTypes entity.

Queries

Fields of entities { opportunityType { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
OpportunityTypeEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[OpportunityTypeEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: OpportunityTypeFilterInput, orderBy: [OpportunityTypeOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[OpportunityTypeEntity!]!
QUERYgetByCriteria(filter: OpportunityTypeFilterInput, orderBy: [OpportunityTypeOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
OpportunityTypeEntityConnection
QUERYgetPublished(limit: Int, offset: Int, filter: OpportunityTypeFilterInput, orderBy: [OpportunityTypeOrderByInput!], includeDeleted: Boolean)
Returns the published records that match the filter, paged with limit and offset.
[OpportunityTypeEntity!]!
QUERYgetDrafts(filter: OpportunityTypeFilterInput, orderBy: [OpportunityTypeOrderByInput!])
Returns the records that match the filter, with pending unpublished changes applied where a draft exists.
[OpportunityTypeEntity!]!
QUERYgetDraftById(entityId: ID!)
Returns the record with the given id, with its pending unpublished changes applied when a draft exists.
OpportunityTypeEntity!
QUERYgetByPipeline(pipelineId: UUID!)
Returns the opportunity type that uses the given pipeline, or null when none does.
OpportunityTypeEntity

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.

OpportunityTypeEntity object 23 fields: id, isDeleted, modified, …

Opportunity type that classifies opportunities and defines their forms (edit, qualify, won and lost).

FieldTypeDescription
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
pipelinePipelineEntityPipeline this opportunity type drives. Each opportunity type maps to exactly one pipeline.
formEditJSONString!JSON definition of the form layout used by the UI when creating or editing opportunities of this type. This payload conforms to the Form JSON Schema: GET /api/v100/rest/schemas/Form.json on your region's API host
formLostJSONString!JSON definition of the form shown when archiving (losing) an opportunity of this type. Used to capture reason of close and any required closing fields. This payload conforms to the Form JSON Schema: GET /api/v100/rest/schemas/Form.json on your region's API host
formQualifyJSONString!JSON definition of the form shown when qualifying a lead into an opportunity of this type.
formWonJSONString!JSON definition of the form shown when winning an opportunity of this type. Used to capture won-deal fields.
isReadonlyBoolean!True when the opportunity type is system-managed and cannot be edited or deleted by users.
nameString!Name of the entity and its default text representation.
pipelineIdID!Id of the pipeline this opportunity type drives.
settingsEntityTypeSettings!Per-type configuration for records of this entity type, e.g. allowed task and appointment types that may be linked to records of this type. This payload conforms to the EntityTypeSettings JSON Schema: GET /api/v100/rest/schemas/EntityTypeSettings.json on your region's API host
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionIntRevision when entity was lastly changed.
hasDraftBooleanTrue when the record has unpublished draft changes, including pending translation changes, that can be published.
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.
formEditApiFormTyped, read-only view of a form layout of this type: formEditApi mirrors the edit form (formEdit), formLostApi the form shown when archiving as lost (formLost).
canChangeReadonlyBooleanFalse for types whose read-only setting is fixed, such as the recurrent appointment type; true otherwise.
formLostApiFormTyped, read-only view of a form layout of this type: formEditApi mirrors the edit form (formEdit), formLostApi the form shown when archiving as lost (formLost).
formQualifyApi[UUID]Ids of the fields shown on the form when a lead is qualified into an opportunity of this type. Read-only view of formQualify.
formWonApi[UUID]Ids of the fields shown on the form when an opportunity of this type is won. Read-only view of formWon.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
OpportunityTypeEntityConnection object pageInfo: PageInfo!, edges: [OpportunityTypeEntityEdge]!, totalCount: Int

Paginated list of OpportunityType records.

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

A Relay edge containing a OpportunityTypeEntity and its cursor.

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

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

Input fieldTypeDescription
OR[OpportunityTypeFilterInput!]Matches records that meet at least one of the listed filters.
AND[OpportunityTypeFilterInput!]Matches records that meet all of the listed filters.
NOTOpportunityTypeFilterInputMatches 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.
isReadonlyBooleanTrue when the opportunity type is system-managed and cannot be edited or deleted by users.
nameEntityFilterStringFieldName of the entity and its default text representation.
pipelineIdEntityFilterStringFieldId of the pipeline this opportunity type drives.
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
pipelinePipelineFilterInputPipeline this opportunity type drives. Each opportunity type maps to exactly one pipeline. Matches records where a related record meets these conditions.
OpportunityTypeOrderByInput input Asc or Desc per field

Sorting of OpportunityType 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.
pipeline[PipelineOrderByNestedInput!]Pipeline this opportunity type drives. Each opportunity type maps to exactly one pipeline. Sorts by fields of the related record, listed in order of priority.
isReadonlyOrderByEnumTrue when the opportunity type is system-managed and cannot be edited or deleted by users.
nameOrderByEnumName of the entity and its default text representation.
pipelineIdOrderByEnumId of the pipeline this opportunity type drives.
isPublishedOrderByEnumTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionOrderByEnumRevision when entity was lastly changed.