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

GraphQLRepositoriescustomEntitySharingSalesUnitRelation

entities.customEntitySharingSalesUnitRelation

Read custom entity sharing sales unit relation records with the customEntitySharingSalesUnitRelation repository, and change them with the custom entity sharing sales unit relation mutations.

Queries

Fields of entities { customEntitySharingSalesUnitRelation { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
CustomEntitySharingSalesUnitRelationEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[CustomEntitySharingSalesUnitRelationEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: CustomEntitySharingSalesUnitRelationFilterInput, orderBy: [CustomEntitySharingSalesUnitRelationOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[CustomEntitySharingSalesUnitRelationEntity!]!
QUERYgetByCriteria(filter: CustomEntitySharingSalesUnitRelationFilterInput, orderBy: [CustomEntitySharingSalesUnitRelationOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
CustomEntitySharingSalesUnitRelationEntityConnection
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
MUTATIONcreateCustomEntitySharingSalesUnitRelation(input: CreateCustomEntitySharingSalesUnitRelationInput!, validationLevel: [ValidationLevel!])Create one recordCreateCustomEntitySharingSalesUnitRelationPayload
MUTATIONupdateCustomEntitySharingSalesUnitRelation(input: UpdateCustomEntitySharingSalesUnitRelationInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateCustomEntitySharingSalesUnitRelationPayload
MUTATIONbulkUpdateCustomEntitySharingSalesUnitRelation(input: [CreateOrUpdateCustomEntitySharingSalesUnitRelationInput!]!, deleteInput: [DeleteCustomEntitySharingSalesUnitRelationInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateCustomEntitySharingSalesUnitRelationPayload
MUTATIONdeleteCustomEntitySharingSalesUnitRelation(input: DeleteCustomEntitySharingSalesUnitRelationInput!)Soft-deleteDeleteCustomEntitySharingSalesUnitRelationPayload

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.

CustomEntitySharingSalesUnitRelationEntity object 12 fields: isDeleteProtected, id, isDeleted, …

Sharing of a custom entity record with a sales unit, as a watcher or an editor.

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.
customEntityCustomEntityEntityCustom entity record being shared.
unitSalesUnitEntitySales unit the custom entity record is shared with.
customEntityIdID!Id of the shared custom entity record.
roleSharingRoleEnumAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdID!Id of the sales unit.
revisionIntRevision when entity was lastly changed.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
CustomEntitySharingSalesUnitRelationEntityConnection object pageInfo: PageInfo!, edges: [CustomEntitySharingSalesUnitRelationEntityEdge]!, totalCount: Int

Paginated list of CustomEntitySharingSalesUnitRelation records.

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

A Relay edge containing a CustomEntitySharingSalesUnitRelationEntity and its cursor.

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

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

Input fieldTypeDescription
OR[CustomEntitySharingSalesUnitRelationFilterInput!]Matches records that meet at least one of the listed filters.
AND[CustomEntitySharingSalesUnitRelationFilterInput!]Matches records that meet all of the listed filters.
NOTCustomEntitySharingSalesUnitRelationFilterInputMatches 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.
customEntityIdEntityFilterStringFieldId of the shared custom entity record.
roleSharingRoleEnumFilterInputAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdEntityFilterStringFieldId of the sales unit.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
customEntityCustomEntityFilterInputCustom entity record being shared. Matches records where a related record meets these conditions.
unitSalesUnitFilterInputSales unit the custom entity record is shared with. Matches records where a related record meets these conditions.
CustomEntitySharingSalesUnitRelationOrderByInput input Asc or Desc per field

Sorting of CustomEntitySharingSalesUnitRelation 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.
customEntity[CustomEntityOrderByNestedInput!]Custom entity record being shared. Sorts by fields of the related record, listed in order of priority.
unit[SalesUnitOrderByNestedInput!]Sales unit the custom entity record is shared with. Sorts by fields of the related record, listed in order of priority.
customEntityIdOrderByEnumId of the shared custom entity record.
roleOrderByEnumAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdOrderByEnumId of the sales unit.
revisionOrderByEnumRevision when entity was lastly changed.
CreateCustomEntitySharingSalesUnitRelationInput input 7 fields: clientMutationId, modified, created, …

Field values of a new CustomEntitySharingSalesUnitRelation 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.
customEntityIdID!Id of the shared custom entity record.
roleSharingRoleEnumAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdID!Id of the sales unit.
revisionIntRevision when entity was lastly changed.
CreateOrUpdateCustomEntitySharingSalesUnitRelationInput input 8 fields: clientMutationId, id, modified, …

Field values of a CustomEntitySharingSalesUnitRelation 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.
customEntityIdIDId of the shared custom entity record.
roleSharingRoleEnumAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdIDId of the sales unit.
revisionIntRevision when entity was lastly changed.
DeleteCustomEntitySharingSalesUnitRelationInput input clientMutationId: String, id: ID!

Id of the CustomEntitySharingSalesUnitRelation 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.
UpdateCustomEntitySharingSalesUnitRelationInput input 8 fields: clientMutationId, id, modified, …

Id of a CustomEntitySharingSalesUnitRelation 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.
customEntityIdIDId of the shared custom entity record.
roleSharingRoleEnumAccess the sharing gives the sales unit on the custom entity record: Watcher can view it, Editor can view and edit it.
unitIdIDId of the sales unit.
revisionIntRevision when entity was lastly changed.
BulkUpdateCustomEntitySharingSalesUnitRelationPayload object result: BulkUpdateResults!

Result of the bulkUpdateCustomEntitySharingSalesUnitRelation mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateCustomEntitySharingSalesUnitRelationPayload object customEntitySharingSalesUnitRelation: CustomEntitySharingSalesUnitRelationEntity, clientMutationId: String

Result of the createCustomEntitySharingSalesUnitRelation mutation.

FieldTypeDescription
customEntitySharingSalesUnitRelationCustomEntitySharingSalesUnitRelationEntityThe 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).
DeleteCustomEntitySharingSalesUnitRelationPayload object customEntitySharingSalesUnitRelation: CustomEntitySharingSalesUnitRelationEntity, clientMutationId: String

Result of the deleteCustomEntitySharingSalesUnitRelation mutation.

FieldTypeDescription
customEntitySharingSalesUnitRelationCustomEntitySharingSalesUnitRelationEntityThe 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).
UpdateCustomEntitySharingSalesUnitRelationPayload object customEntitySharingSalesUnitRelation: CustomEntitySharingSalesUnitRelationEntity, clientMutationId: String

Result of the updateCustomEntitySharingSalesUnitRelation mutation.

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