Skip to main content

PIMS View Dictionary Management API

POST 

/pim/manage/views

Views enable efficient access to specific and essential product information. By setting data filters within views, you can conveniently retrieve a refined subset of data (products) based on attribute values. Configure views for various purposes and assign them to corresponding users.

To utilize this API, send a POST request with a JSON body. Set the action key in the JSON body to one of the following values:

  • listPimViews: Retrieve information about all Views in PIMS.
  • addPimView: Add a new View to PIMS.
  • editPimView: Modify information about an existing View in PIMS.
  • deletePimView: Delete a View.

Below is the description of the JSON keys for the PimView object:

  • name: The name of the PIM View.
  • comment: A comment or description of the View.
  • label: Describes the label associated with the PIM View. The label is used as an identifier or descriptor for the view and aids in user understanding.
  • attributes: A list of JSON objects in which the attributes serve as keys. ✔Please ensure that the attributes listed exist within the PIMS system.

JSON keys for the attribute object:

  • attribute: Attribute names.
  • readonly: Specifies whether the attribute is read-only.
  • group: Specifies the group to which the attribute belongs.
  • transform: Defines any attribute transformations, mapping original attribute names to desired names.
  • default: Specifies the default value for the attribute. This value is used when creating a product if no specific value is provided.

In all APIs that return a product object using a View, only the attributes that were defined within the View will be returned. This ensures that you receive only the specific attributes of the product that were specified in the View.

Feel free to modify the JSON body according to your requirements while adhering to the provided structure and keys.

Use Example Value and Schema for Json requests

Request

Body

required
    oneOf
    action stringrequired

    Possible values: [listViews]

Responses

success

Schema
    oneOf
    data object[]

    Collection objects PimView

  • Array [
  • name stringrequired
    definition objectrequired
    attributes objectrequired

    A list of JSON objects in which the attributes serve as keys

    nameattribute objectrequired

    attribute name

    readonly boolean

    Possible values: [true, false]

    Specifies whether the attribute is read-only

    group string

    Specifies the group to which the attribute belongs

    transform string

    Defines any attribute transformations, mapping original attribute names to desired names

    default string

    Specifies the default value for the attribute. This value is used when creating a product if no specific value is provided

    comment stringrequired

    A comment or description of the View

    label stringrequired

    Describes the label associated with the PIM View. The label is used as an identifier or descriptor for the view and aids in user understanding.

  • ]
  • status string
Loading...