Assets Overview

Quick Reference

Endpoint Summary

This table provides quick access to the document and document type query services under the Assets section. Detailed request and response fields are included in the relevant sections.

NoServiceEndpoint
1Document QueryPOST /api/v1/query/documents
2Document Type QueryPOST /api/v1/query/documenttypes
General Usage

General Technical Information

Authentication

For the Assets query endpoints on this page, authentication information is sent in the request body. ClientId and AppKey fields are required.

Assets Scope

This section is prepared to query document and document type records managed in PIM. The endpoints do not create or update data; they list existing asset records.

Document Relationship

Document records can be associated with products, variants, or different entity types. This relationship is interpreted through the RelatedDataEntityType and RelatedDataEntityId fields.

Vault and Folder Structure

The areas where documents are stored can be tracked through the VaultId and FolderId fields. This structure enables documents to be positioned within the file system or document explorer.

Response Structure

Records are returned in the Result field, while the total record count is returned in the TotalCount field.

Document refers to a digital file record that can be associated with a product, variant, or other catalog assets in PIM. Assets such as images, PDFs, Excel files, technical documents, or user manuals can be managed through this structure.

Document type is reference data that defines the format or selection type of the document. Whether the file is an image or a document, and the format in which it is stored, can be interpreted through this structure.

1. Document Query — POST /api/v1/query/documents

This endpoint is used to retrieve files from the Document Management screens in the PIM UI, including Document Explorer and product/variant media management, through the API.

Technical Note
  • GetDocuments is used to query document assets registered in PIM.
  • DocumentIds, FolderIds, and VaultIds parameters can be used to filter documents by identity and location.
  • EntityTypes and EntityIds parameters enable querying based on the product, variant, or related entity records to which the documents are linked.
  • TypeIds parameter can be used to retrieve only records belonging to specific document types.
  • DocumentKey, DocumentPath, and RelativeDocumentPath fields can be used to interpret the file location on the storage side.
  • ValidFrom and ValidThru fields should be checked in scenarios where the document has a validity period.

Usage Notes for Document Data

  • Files displayed in product or variant media management can be associated with document records.
  • The catalog asset to which the document is linked can be tracked through the RelatedDataEntityType and RelatedDataEntityId fields.
  • The file format and how the file is classified should be evaluated together with the DocumentType object.
  • Tag and custom field information can be used in document search, filtering, and classification processes.

Endpoint-Specific Query Parameters

API Parameter Type PIM UI Equivalent / Meaning Description
TypeIds array (integer) Document Type ID List Filters by specific document types, for example only PDFs.
EntityTypes array (string) Related Entity Type Entity type to which the document is related, for example Product or Variant.
EntityIds array (integer) Related Entity ID List ID of the entity to which the document is linked.
DocumentIds array (guid) Document ID List Filters specific documents by ID.
FolderIds array (guid) Folder ID List Filters documents in specific folders.
VaultIds array (guid) Vault ID List Filters documents in specific vaults.
Codes array (string) Document Code Filter Filters by document code.
DocumentKeys array (string) Document Key Filter Filters by document key.
Tags array (object) Tag Filter Filters by tags assigned to the document.

API Response Parameters and UI Equivalents

Each DocumentResponse object in the Result array contains the following fields:

API Response Field Type PIM UI Equivalent / Field Name Description
DocumentIdguidDocument Unique IDUnique file identity in the document management system.
NamestringFile NameFile name displayed in the document explorer and product/variant media list.
DescriptionstringDescriptionDescription text of the document.
SourceDocumentCodestringSource Document CodeDocument code in the original source system.
DocumentKeystringDocument KeyUnique key in the storage area.
DocumentPathstringFile PathFull path of the file on the server.
RelativeDocumentPathstringRelative File PathRelative path of the file.
FileSizedecimalFile SizeFile size information.
TypeIdintegerDocument Type IDReference ID of the document type.
DocumentTypeobjectDocument TypeDocument type detail information, such as name and extension.
VaultIdguid?Vault IDID of the vault where the document is located.
VaultobjectVault InformationVault detail information.
FolderIdguid?Folder IDID of the folder where the document is located.
FolderobjectFolder InformationFolder detail information.
RelatedDataEntityTypestringRelated Entity TypeEntity type to which the document is linked.
RelatedDataEntityIdintegerRelated Entity IDID of the entity to which the document is linked.
IssueDatedatetime?Issue DateIssue date of the document.
ValidFromdatetime?Validity StartValidity start date of the document.
ValidThrudatetime?Validity EndValidity end date of the document.
PropertiesarrayDocument PropertiesCustom fields defined for the document.
TagsarrayDocument TagsTags assigned to the document.
DocumentEntitiesarrayRelated EntitiesList of all entities to which the document is linked.
StatusintegerStatus1 = Active, -1 = Passive.
CreateddatetimeCreation DateDate when the document was uploaded to the system.
Updateddatetime?Update DateLast update date.

Usage Guide in the UI

  • Document Explorer: The document explorer screen in the UI is populated through this endpoint. The vault and folder structure is determined by VaultId and FolderId.
  • Product/Variant Media Relationship: You can learn which product or variant a document is linked to from the RelatedDataEntityType and RelatedDataEntityId fields.

2. Document Type Query — POST /api/v1/query/documenttypes

This endpoint is used to retrieve document type definitions in the PIM UI, such as PDF, JPEG, and XLSX, through the API. It is used to list and filter file types in document management.

Technical Note
  • GetDocumentTypes is used to query document type records defined in the system.
  • Document type is used as reference data to standardize the format and selection type of the document.
  • TypeCode field represents the file extension or format information.
  • SelectionType field can determine whether the related type is evaluated as an image or a document.
  • This endpoint can be used to retrieve supported types in document upload and document filtering scenarios.

Usage Notes for Document Type

  • In document lists, format icons and format labels can be interpreted through the TypeCode field.
  • Document type information can be used as a reference in controls such as file acceptance rules and media/document distinction.
  • Active/passive status information should be considered when listing available document types.

Endpoint-Specific Query Parameters

This endpoint does not include any additional endpoint-specific filter parameter other than BaseQuery parameters.

(Only common parameters: ClientId, AppKey, PageIndex, PageSize, Sorting, Status, ThreadId)

API Response Parameters and UI Equivalents

Each DocumentType object in the Result array contains the following fields:

API Response Field Type PIM UI Equivalent / Field Name Description
TypeId integer Type System ID Unique ID of the document type.
TypeCode string Format / File Extension File type extension shown under the “Format” column in the document row in the UI, for example PDF, JPEG, or XLSX.
Name string Type Name Display name of the document type.
SelectionType string Selection Type Type information indicating whether the document is an image or a document.
Status integer Status 1 = Active, -1 = Passive.
Created datetime Creation Date Date when the type was added to the system.
Updated datetime? Update Date Last update date.

Usage Guide in the UI

  • File Format Icon: The file type shown in the format column in the document list in the UI, such as PDF or Excel, is read directly from the TypeCode field.
  • Document Upload: When uploading a new document, you can retrieve which file types the system supports from this endpoint.

Error Management

Common Error Cases

The table below is prepared for the common error cases that may apply to the endpoints under the Assets section. The error message field is left blank so endpoint-specific returned messages can be added.

HTTP StatusStatusError Message
400Bad Request
401Unauthorized
403Forbidden
404Not Found
422Unprocessable Entity
429Too Many Requests
500Internal Server Error