MHL
Methods allow you to get a complete list or a specific must-have list in Eyrene, view information about them, update all fields, or only select MHL fields. Also, you can delete MHL by ID.
Retrieve a must-have list.
Use MHL to define a list of products that must necessarily be on the shelf. MHL_COMPLIANCE report based on the MHL. MHL is associated with other entities using the display.
curl –i –X GET
https://test.eyrene.com/api/v1.5/mhl/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "limit=3" \
-F "offset=0" Response parameters​
count integer
The number of MHLs.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about MHLs.
- id string Unique ID.
- name string Human-readable name.

Сreate a new must-have list.
Use MHL to define a list of products that must necessarily be on the shelf. MHL_COMPLIANCE report based on the MHL. MHL is associated with other entities using the display.mhl.
curl –i –X POST
https://test.eyrene.com/api/v1.5/mhl/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=46" \
-F "name=new_products_matrix"Retrieve detailed information about must-have list by ID.
curl –i –X GET
https://test.eyrene.com/api/v1.5/mhl/31/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ Response parameters
id string
Unique ID.
name string
Human-readable name.
display string
Display ID.
musthavelist string
Must-have list ID.

Update all must-have list fields.
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/mhl/31/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=45" \
-F "name=new_products_matrix" \
-F "display=11"​Response parameters
id string
Unique ID.
name string
Human-readable name.
display string
Display ID.

Update some of must-have list fields.
curl –i –X PATCH
https://test.eyrene.com/api/v1.5/mhl/31/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "name=new_products_matrix" Response parameters​
id string
Unique ID.
name string
Human-readable name.
Display string
Display ID.

Delete must-have list by ID.
curl –i –X DELETE
https://test.eyrene.com/api/v1.5/mhl/31/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’