Measure MapAPI

Archive a product

DELETE/products/{id}
products:write EnterpriseOpen Guest
Archives the product: it leaves the pickers in the app, and every shape already priced with it keeps its price. Products are never deleted through the API. Send archived: false with Update a product to bring one back.

Path parameters

  • idstringrequired
    The product's ID.

Responses

  • ArchivedProduct:

    • archivedbooleanrequired
      Alwaystrue
    • productobjectrequired

Errors

A failed request answers with one of these, in an Error body.

401unauthorized_actionThe item is not on your account or your members', the request came from a web page on a website the key does not allow, or the action is not allowed for this person.
403insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.
403invalid_api_keyNo key was sent in the Authorization header, or the key is unknown, revoked, or past the time it kept working after being replaced.
404not_foundThe folder or product does not exist, or is not in your catalogue.

Try it

This key is

The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.

The product's ID.
DELETE https://api.measuremaponline.com/api/v1/products/prd_Lw7Qm2Xc

Fill in your API key to send.

As a cURL command
Shell
curl -X DELETE 'https://api.measuremaponline.com/api/v1/products/prd_Lw7Qm2Xc' \
  -H "Authorization: $MMO_API_KEY"