Skip to main content

How to unarchive a product in the PIM

You can unarchive a product via the PIM interface or via the PIM API

Written by Jaurel WANJI

When a product is archived, it is no longer visible in search results.

To make it visible again, you need to unarchive it; here is a step-by-step guide on how to do this.

A. Unarchiving a product via the PIM interface.

  • Create an Excel file:

    • Your file will have 2 columns, a ‘document_code’ column, where you will enter the code of the product you wish to unarchive, and an “active” column, where you will enter the value ‘1’.

  • Import your file into the PIM :

    • Click on the ‘Imports/Exports’ button in the side menu, then on ‘Start an import’;

    • click on ‘Import without profile’;

    • choose the language, select ‘Replace’ as the ‘Empty cell action’, then choose the ‘Object type’ and ‘Product type’;

    • Select the file format;

    • drag and drop your file into the ‘File source’ area, or click on the ‘Choose files’ button to add it from its location on your computer and finally click on ‘Import data'.

  • Check the status of your import in the ‘Activity reports’ and once it shows “State” as ‘Success’, you will now be able to access your unarchived product from the search.

B. Unarchiving a product via the PIM API:

You can use the API endpoint PUT /api/documents/{document_code} to unarchive (activate) a product with the following body:

{
"active": true,
}
Did this answer your question?