MHL record
Methods allow you to get a complete list or a specific MHL record in Eyrene, view information about them, update all fields, or only select MHL record fields. Also, you can delete the MHL record by ID.
Retrieve an MHL record.
curl –i –X GET
https://test.eyrene.com/api/v1.5/mhl_record/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "limit=2" \
-F "offset=0" Response parameters
​
count integer
The number of MHL records.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about MHL records.
- id string Unique ID.
- name string Human-readable name.
- sku1Â string SKUÂ ID.
- sku2Â string SKUÂ ID.
- sku3Â string SKUÂ ID.
- sku4Â string SKUÂ ID.
- sku5Â string SKUÂ ID.
- sku6Â string SKUÂ ID.
Six optional sku1-sku6 fields are combined with logical OR when checking the MHL compliance:
Compliant = (sku is present) OR (sku1 is present) OR (sku2 is present) ... OR (sku6 is present)

Сreate a new MHL record.
curl –i –X POST
https://test.eyrene.com/api/v1.5/mhl_record/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=459" \
-F "name=Latvian sour cream 5 kg" \
-F "musthavelist=156" \
-F "sku=32466" \
-F "sku=32468"Retrieve detailed information about MHL records by ID.
curl –i –X GET
https://test.eyrene.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ Response parameters
count integer
The number of MHL records.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about MHL records.
- id string Unique ID.
- name string Human-readable name.
- sku1Â string SKUÂ ID.
- sku2Â string SKUÂ ID.
- sku3Â string SKUÂ ID.
- sku4Â string SKUÂ ID.
- sku5Â string SKUÂ ID.
- sku6Â string SKUÂ ID.
Six optional sku1-sku6 fields are combined with logical OR when checking the MHL compliance:
Compliant = (sku is present) OR (sku1 is present) OR (sku2 is present) ... OR (sku6 is present)

Update all fields of the MHL record.
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=4326" \
-F "name=Latvian sour cream 5 kg" \
-F "musthavelist=41" \
-F "sku=32466" \
-F "sku1=32468" \
-F "sku2=32469" \
-F "sku3=32470" \
-F "sku4=32471" \
-F "sku5=32472" \
-F "sku5=32473"​Response parameters
count integer
The number of MHL records.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about MHL records.
- id string Unique ID.
- name string Human-readable name.
- sku1Â string SKUÂ ID.
- sku2Â string SKUÂ ID.
- sku3Â string SKUÂ ID.
- sku4Â string SKUÂ ID.
- sku5Â string SKUÂ ID.
- sku6Â string SKUÂ ID.
Six optional sku1-sku6 fields are combined with logical OR when checking the MHL compliance:
Compliant = (sku is present) OR (sku1 is present) OR (sku2 is present) ... OR (sku6 is present)

Update some of the fields in the MHL record.
curl –i –X PATCH
https://test.eyrene.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "sku=32466" \
-F "sku1=32468" \
-F "sku2=32469" \
-F "sku3=32470" \
-F "sku4=32471" \
-F "sku5=32472" \
-F "sku5=32473"Response parameters​
count integer
The number of MHL records.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about MHL records.
- id string Unique ID.
- name string Human-readable name.
- sku1Â string SKUÂ ID.
- sku2Â string SKUÂ ID.
- sku3Â string SKUÂ ID.
- sku4Â string SKUÂ ID.
- sku5Â string SKUÂ ID.
- sku6Â string SKUÂ ID.
Six optional sku1-sku6 fields are combined with logical OR when checking the MHL compliance:
Compliant = (sku is present) OR (sku1 is present) OR (sku2 is present) ... OR (sku6 is present)

Delete MHL record by ID.
curl –i –X DELETE
https://test.eyrene.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’