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

GraphQLRepositoriesproductCategory

entities.productCategory

Read product category records with the productCategory repository, and change them with the product category mutations. Same records as the REST ProductCategories entity.

Queries

Fields of entities { productCategory { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
ProductCategoryEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[ProductCategoryEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: ProductCategoryFilterInput, orderBy: [ProductCategoryOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[ProductCategoryEntity!]!
QUERYgetByCriteria(filter: ProductCategoryFilterInput, orderBy: [ProductCategoryOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
ProductCategoryEntityConnection
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
MUTATIONcreateProductCategory(input: CreateProductCategoryInput!, validationLevel: [ValidationLevel!])Create one recordCreateProductCategoryPayload
MUTATIONupdateProductCategory(input: UpdateProductCategoryInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateProductCategoryPayload
MUTATIONbulkUpdateProductCategory(input: [CreateOrUpdateProductCategoryInput!]!, deleteInput: [DeleteProductCategoryInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateProductCategoryPayload
MUTATIONdeleteProductCategory(input: DeleteProductCategoryInput!)Soft-deleteDeleteProductCategoryPayload

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.

ProductCategoryEntity object 11 fields: isDeleteProtected, id, isDeleted, …

Category in the hierarchy of the product catalog.

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.
parentProductCategoryEntityParent category in the catalog hierarchy. Empty for top-level categories.
nameString!Name of the entity and its default text representation.
parentIdIDId of the parent category.
revisionIntRevision when entity was lastly changed.
productRelationsProductEntityConnection (7 args)All Products in this category.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
ProductCategoryEntityConnection object pageInfo: PageInfo!, edges: [ProductCategoryEntityEdge]!, totalCount: Int

Paginated list of ProductCategory records.

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

A Relay edge containing a ProductCategoryEntity and its cursor.

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

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

Input fieldTypeDescription
OR[ProductCategoryFilterInput!]Matches records that meet at least one of the listed filters.
AND[ProductCategoryFilterInput!]Matches records that meet all of the listed filters.
NOTProductCategoryFilterInputMatches 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.
nameEntityFilterStringFieldName of the entity and its default text representation.
parentIdEntityFilterStringFieldId of the parent category.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
parentProductCategoryFilterInputParent category in the catalog hierarchy. Empty for top-level categories. Matches records where a related record meets these conditions.
productRelationsProductFilterInputAll Products in this category. Matches records where a related record meets these conditions.
ProductCategoryOrderByInput input Asc or Desc per field

Sorting of ProductCategory 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.
parent[ProductCategoryOrderByNestedInput!]Parent category in the catalog hierarchy. Empty for top-level categories. Sorts by fields of the related record, listed in order of priority.
nameOrderByEnumName of the entity and its default text representation.
parentIdOrderByEnumId of the parent category.
revisionOrderByEnumRevision when entity was lastly changed.
CreateOrUpdateProductCategoryInput input 8 fields: clientMutationId, id, modified, …

Field values of a ProductCategory 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.
nameStringName of the entity and its default text representation.
parentIdIDId of the parent category.
revisionIntRevision when entity was lastly changed.
productRelations[CreateProductNoProductCategoryBackrefInput!]All Products in this category.
CreateProductCategoryInput input 7 fields: clientMutationId, modified, created, …

Field values of a new ProductCategory 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.
nameString!Name of the entity and its default text representation.
parentIdIDId of the parent category.
revisionIntRevision when entity was lastly changed.
productRelations[CreateProductNoProductCategoryBackrefInput!]All Products in this category.
CreateProductNoProductCategoryBackrefInput input 16 fields: modified, created, picture, …

Field values of a new Product record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
pictureCreateCloudObjectInputProduct picture.
allowedPipelinesAccessPipelinesEnumWhether this product can be added to all pipelines or only the explicitly linked subset (see productPipelineRelations).
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this product.
descriptionStringFree-form description of the product.
nameString!Name of the product, shown in catalogues and pickers.
pictureIdIDId of the product picture document.
productTypeIdIDId of the product type that classifies this product.
skuStringStock-keeping unit (SKU) identifier of the product. Must be unique across products.
unitSymbolStringUnit of measure shown next to product quantities (e.g. pcs, kg, hours).
customFieldsJSONStringCustom field values to set, as a JSON object keyed by custom field API name, e.g. {"cfBudget": 1000}. Only the custom fields included are changed; each value uses the format of that field.
revisionIntRevision when entity was lastly changed.
productPipelineRelations[CreateProductPipelineRelationNoProductBackrefInput!]Deprecated pipeline connection.
productPipelinesProductPipelinesInputConfiguration of Pipelines where the Product can be used.
pictureSourceUrlStringURL of an image to use as the product picture. The image is downloaded from this URL and checked; only pictures are supported.
DeleteProductCategoryInput input clientMutationId: String, id: ID!

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

Id of a ProductCategory 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.
nameStringName of the entity and its default text representation.
parentIdIDId of the parent category.
revisionIntRevision when entity was lastly changed.
productRelations[CreateProductNoProductCategoryBackrefInput!]All Products in this category.
BulkUpdateProductCategoryPayload object result: BulkUpdateResults!

Result of the bulkUpdateProductCategory mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateProductCategoryPayload object productCategory: ProductCategoryEntity, clientMutationId: String

Result of the createProductCategory mutation.

FieldTypeDescription
productCategoryProductCategoryEntityThe 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).
DeleteProductCategoryPayload object productCategory: ProductCategoryEntity, clientMutationId: String

Result of the deleteProductCategory mutation.

FieldTypeDescription
productCategoryProductCategoryEntityThe 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).
UpdateProductCategoryPayload object productCategory: ProductCategoryEntity, clientMutationId: String

Result of the updateProductCategory mutation.

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