Skip to main content

Views API for Specific API Key

POST 

/pim/manage/views/:apikey

This API provides functionality for managing and assigning Views to specific API Keys. With these endpoints, you can assign, edit, set a default View, or remove a previously assigned View from an API Key.

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:

  • listViews: Get a list of all Views assigned to an ApiKey
  • addView: Assigning a View to an ApiKey.

The name of the View passed to the API must exist in the PIM's view Dictionary (to create a Vew in the Dictionary, see the "PIM View Dictionary" documentation section)

  • editView: Allows you to edit the data that was used for assigning the view.
  • setDefault: Change the default View in use
  • deleteView: Removed a previously assigned View from an ApiKey.

Use Example Value and Schema for Json requests

Request

Path Parameters

    apikey stringrequired

    Particular api key.

Body

required

Please take note of the following crucial aspects when it comes to managing and assigning Views to specific API Keys:

  • addView: The name of the View passed to the API must exist in the PIM's View Dictionary.
  • addView, editView The "isDefault" parameter is not passed as all new views are set as NOT default. To mark a view as the default, a separate call should be made.
  • deleteView You cannot remove an assigned View from an APIKey if it is set as the 'Default' View. ✔You have the option to assign the 'Default' status to a different view, thereby changing the current view to 'not-Default'.
    oneOf
    action stringrequired

    Possible values: [listViews]

Responses

success

Schema
    oneOf
    status stringrequired
    views objectrequired
    nameview object
    isDefault stringrequired

    Possible values: [y, n]

    comment string
Loading...