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.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- limitstringDescriptionThe number of results to return per page.
- offsetstringDescriptionThe initial index from which to return the results.
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" {
"count":2,
"next":"http://example.com",
"previous":null,
"results":[
{
"id":9378,
"name":"Latvian sour cream 5 kg",
"musthavelist":56,
"sku":32562,
"sku1":null,
"sku2":null,
"sku3":null,
"sku4":null,
"sku5":null,
"sku6":null
},
{
"id":4326,
"name":"Milk MARGE bez laktozes UHT 3,2% 1l",
"musthavelist":41,
"sku":32466,
"sku1":32468,
"sku2":null,
"sku3":null,
"sku4":null,
"sku5":null,
"sku6":null
}
]
}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.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionUnique ID.
- namestringDescriptionHuman-readable name.
- musthaveliststringDescriptionMust have list ID.
- skustringDescriptionSKU ID.
- sku1-sku6stringDescriptionSKU ID.
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"{
"result": "CREATED"
}Retrieve detailed information about MHL  records by ID.
- idstringrequiredDescriptionMHL record ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
curl –i –X GET
https://test.eyrene.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ {
"id":9378,
"name":"Latvian sour cream 5 kg",
"musthavelist":56,
"sku":32562,
"sku1":null,
"sku2":null,
"sku3":null,
"sku4":null,
"sku5":null,
"sku6":null
}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.
- idstringrequiredDescriptionMHL record ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionUnique ID.
- namestringDescriptionHuman-readable name.
- musthaveliststringDescriptionMHL ID.
- skustringDescriptionSKU ID.
- sku1-sku6stringDescriptionSKU ID.
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"{
"id":4326,
"name":"Latvian sour cream 5 kg",
"musthavelist":41,
"sku":32466,
"sku1":32468,
"sku2":32469,
"sku3":32470,
"sku4":32471,
"sku5":32472,
"sku6":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.
- idstringrequiredDescriptionMHL record ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionUnique ID.
- namestringDescriptionHuman-readable name.
- musthaveliststringDescriptionMHL ID.
- skustringDescriptionSKU ID.
- sku1-sku6stringDescriptionSKU ID.
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"{
"id":9378,
"name":"Latvian sour cream 5 kg",
"musthavelist":56,
"sku":32466,
"sku1":32468,
"sku2":32469,
"sku3":32470,
"sku4":32471,
"sku5":32472,
"sku6":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.
- idstringrequiredDescriptionMHL record ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
curl –i –X DELETE
https://test.eyrene.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’{
"result":"OK"
}