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

GraphQLRepositoriesimportMappingMask

entities.importMappingMask

Read import mapping mask records with the importMappingMask repository, and change them with the import mapping mask mutations. Same records as the REST ImportMappingMasks entity.

Queries

Fields of entities { importMappingMask { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
ImportMappingMaskEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[ImportMappingMaskEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: ImportMappingMaskFilterInput, orderBy: [ImportMappingMaskOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[ImportMappingMaskEntity!]!
QUERYgetByCriteria(filter: ImportMappingMaskFilterInput, orderBy: [ImportMappingMaskOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
ImportMappingMaskEntityConnection
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!]!
QUERYgetForEntityType(entityType: ImportMaskEntityTypeEnum!, entityApiName: String)
Returns the saved import column mappings for the given record type, sorted by name.
[ImportMappingMaskEntity!]!

Mutations

KindMutationDoesReturns
MUTATIONcreateImportMappingMask(input: CreateImportMappingMaskInput!, validationLevel: [ValidationLevel!])Create one recordCreateImportMappingMaskPayload
MUTATIONupdateImportMappingMask(input: UpdateImportMappingMaskInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateImportMappingMaskPayload
MUTATIONbulkUpdateImportMappingMask(input: [CreateOrUpdateImportMappingMaskInput!]!, deleteInput: [DeleteImportMappingMaskInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateImportMappingMaskPayload
MUTATIONdeleteImportMappingMask(input: DeleteImportMappingMaskInput!)Soft-deleteDeleteImportMappingMaskPayload

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.

ImportMappingMaskEntity object 20 fields: isDeleteProtected, id, isDeleted, …

Saved mapping of import file columns to fields, reused when importing records of the same entity.

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.
ownerClientEntityUser who owns the import mapping mask.
entityApiNameStringAPI name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name).
entityTypeImportMaskEntityTypeEnum!Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity.
mappingJSONString!How the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write.
nameString!Display name of the mask.
ownerIdID!Id of the owning user.
relationTypesJSONStringRecord type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write.
shareModeProfileShareModeWho besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users.
revisionIntRevision when entity was lastly changed.
sharingClients[ClientEntity!]Users granted shared access to this import mapping mask (custom share mode).
sharingUnits[SalesUnitEntity!]Sales units granted shared access to this import mapping mask (custom share mode).
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
mappingMask[ImportMappingMaskItem!]How the columns of the import file map to fields: one item per mapped field, with the mapping type and the source column.
mappingRelationTypes[ImportMappingRelationType!]Record type selected for each mapped relation field of the mask.
isDefaultBoolean!True for a default import mapping mask provided by Coevera; it cannot be deleted.
ImportMappingMaskEntityConnection object pageInfo: PageInfo!, edges: [ImportMappingMaskEntityEdge]!, totalCount: Int

Paginated list of ImportMappingMask records.

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

A Relay edge containing a ImportMappingMaskEntity and its cursor.

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

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

Input fieldTypeDescription
OR[ImportMappingMaskFilterInput!]Matches records that meet at least one of the listed filters.
AND[ImportMappingMaskFilterInput!]Matches records that meet all of the listed filters.
NOTImportMappingMaskFilterInputMatches 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.
entityApiNameEntityFilterStringFieldAPI name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name).
entityTypeImportMaskEntityTypeEnumFilterInputEntity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity.
nameEntityFilterStringFieldDisplay name of the mask.
ownerIdEntityFilterStringFieldId of the owning user.
shareModeShareModeEnumFilterInputWho besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
ownerClientFilterInputUser who owns the import mapping mask. Matches records where a related record meets these conditions.
ImportMappingMaskOrderByInput input Asc or Desc per field

Sorting of ImportMappingMask 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.
owner[ClientOrderByNestedInput!]User who owns the import mapping mask. Sorts by fields of the related record, listed in order of priority.
entityApiNameOrderByEnumAPI name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name).
ownerIdOrderByEnumId of the owning user.
shareModeOrderByEnumWho besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users.
revisionOrderByEnumRevision when entity was lastly changed.
ImportMaskEntityTypeEnumFilterInput input eq: [ImportMaskEntityTypeEnum!], NOT: ImportMaskEntityTypeEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[ImportMaskEntityTypeEnum!]Matches any of the listed values.
NOTImportMaskEntityTypeEnumFilterInputMatches values that do not meet this condition.
CreateImportMappingMaskInput input 13 fields: clientMutationId, modified, created, …

Field values of a new ImportMappingMask 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.
entityApiNameStringAPI name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name).
entityTypeImportMaskEntityTypeEnum!Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity.
mappingJSONString!How the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write.
nameString!Display name of the mask.
ownerIdID!Id of the owning user.
relationTypesJSONStringRecord type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write.
shareModeProfileShareModeWho besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users.
revisionIntRevision when entity was lastly changed.
sharingClients[UUID!]Users granted shared access to this import mapping mask (custom share mode).
sharingUnits[UUID!]Sales units granted shared access to this import mapping mask (custom share mode).
CreateOrUpdateImportMappingMaskInput input 14 fields: clientMutationId, id, modified, …

Field values of an ImportMappingMask 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.
entityApiNameStringAPI name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name).
entityTypeImportMaskEntityTypeEnumEntity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity.
mappingJSONStringHow the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write.
nameStringDisplay name of the mask.
ownerIdIDId of the owning user.
relationTypesJSONStringRecord type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write.
shareModeProfileShareModeWho besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users.
revisionIntRevision when entity was lastly changed.
sharingClients[UUID!]Users granted shared access to this import mapping mask (custom share mode).
sharingUnits[UUID!]Sales units granted shared access to this import mapping mask (custom share mode).
DeleteImportMappingMaskInput input clientMutationId: String, id: ID!

Id of the ImportMappingMask 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.
UpdateImportMappingMaskInput input 14 fields: clientMutationId, id, modified, …

Id of an ImportMappingMask 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.
entityApiNameStringAPI name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name).
entityTypeImportMaskEntityTypeEnumEntity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity.
mappingJSONStringHow the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write.
nameStringDisplay name of the mask.
ownerIdIDId of the owning user.
relationTypesJSONStringRecord type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write.
shareModeProfileShareModeWho besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users.
revisionIntRevision when entity was lastly changed.
sharingClients[UUID!]Users granted shared access to this import mapping mask (custom share mode).
sharingUnits[UUID!]Sales units granted shared access to this import mapping mask (custom share mode).
BulkUpdateImportMappingMaskPayload object result: BulkUpdateResults!

Result of the bulkUpdateImportMappingMask mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateImportMappingMaskPayload object importMappingMask: ImportMappingMaskEntity, clientMutationId: String

Result of the createImportMappingMask mutation.

FieldTypeDescription
importMappingMaskImportMappingMaskEntityThe 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).
DeleteImportMappingMaskPayload object importMappingMask: ImportMappingMaskEntity, clientMutationId: String

Result of the deleteImportMappingMask mutation.

FieldTypeDescription
importMappingMaskImportMappingMaskEntityThe 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).
UpdateImportMappingMaskPayload object importMappingMask: ImportMappingMaskEntity, clientMutationId: String

Result of the updateImportMappingMask mutation.

FieldTypeDescription
importMappingMaskImportMappingMaskEntityThe 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).
ImportFieldMappingType enum ColumnIndex, UseDefaultValues, CalculateValue

How an import mapping fills a target field.

ValueDescription
ColumnIndexValue is read from the file column given by columnIndex.
UseDefaultValuesThe field's default value is used.
CalculateValueThe value is calculated by Coevera instead of imported.
ImportMappingMaskItem object fieldId: ID!, mappingType: ImportFieldMappingType!, columnIndex: Int

How a saved import mapping fills one field: the mapping type and the source column of the import file.

FieldTypeDescription
fieldIdID!Id of the field the import fills.
mappingTypeImportFieldMappingType!How the import fills the field.
columnIndexIntIndex of the import file column the value is read from; set when mappingType is ColumnIndex.
ImportMappingRelationType object fieldId: ID!, entityTypeId: ID!

Record type selected for a relation field in a saved import mapping.

FieldTypeDescription
fieldIdID!Id of the mapped relation field.
entityTypeIdID!Id of the record type selected for the relation field.
ImportMaskEntityTypeEnum enum Lead, Opportunity, Account, Contact, Client, Product, ProductPriceListPrice, CustomEntity

Entity that an import mapping mask imports records into.

ValueDescription
LeadPotential sale in its early stage that moves through a lead process until it is qualified into an opportunity or lost.
OpportunityPotential deal with a value and closing date that moves through the steps of a sales pipeline until it is won or lost.
AccountCompany or organization the sales team works with; contacts, leads, opportunities and activities are linked to it.
ContactPerson the sales team works with, usually linked to one or more accounts, leads and opportunities.
ClientUsers of the space.
ProductProduct or service in the catalog that can be added as a line item to opportunities and quotes.
ProductPriceListPriceProduct prices in price lists.
CustomEntityRecord of a custom entity, a kind of record the space defines (such as Vehicle or Contract) in addition to the built-in entities.
ProfileShareMode enum Private, Public, SelectedUnitsAndUsers

Who besides the owner can use a shared item such as an import mapping.

ValueDescription
PrivateOnly the owner.
PublicAll users.
SelectedUnitsAndUsersThe users and sales units the item is shared with.