/mhl_record/{id}
Retrieve detailed MHL record information by ID, or updates the fields in the MHL record (specified or all). Also allows you to delete the MHL record via DELETE
method.
Adress: https://instance_name/api/v1.5/mhl_record/{id}
Methods:
- GET — retrieve detailed MHL record information by ID;
- PUT — update all MHL record fields;
- PATCH — update some MHL record fields.
- DELETE — delete MHL record.
Content-type: application/json
- GET
- PUT
- PATCH
- DELETE
Path parameters
id
string
Request example
curl –i –X GET
https://test.inspector-cloud.com/api/v1.5/mhl_record/9378/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200
{
"id": 9378,
"name": "Сметана-Домик в деревне-300-10.00-Стакан/Ванночка",
"musthavelist": 56,
"sku": 32562,
"sku1": null,
"sku2": null,
"sku3": null,
"sku4": null,
"sku5": null,
"sku6": null
}
Response definitions
id
string
Unique ID.
name
string
Human-readable name. Optional.
musthavelist
string
Must have list ID.
sku
string
SKU ID.
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)
Path parameters
id
string
Request body parameters
id
string
Unique ID.
name
string
Human-readable name. Optional.
musthavelist
string
Must have list ID.
sku
string
SKU ID.
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)
Request example
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/mhl/9378/
-H ‘Authorization: Token <<your_token>>’
-F "id=4326" \
-F "name=Молоко пастеризованное-Домик в деревне-1000-3.70-Бутылка пластик" \
-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 example
Response code: 200
{
"id": 4326,
"name": "Молоко пастеризованное-Домик в деревне-1000-3.70-Бутылка пластик",
"musthavelist": 41,
"sku": 32466,
"sku1": 32468,
"sku2": 32469,
"sku3": 32470,
"sku4": 32471,
"sku5": 32472,
"sku6": 32473
}
Path parameters
id
string
Request body parameters
id
string
Unique ID.
name
string
Human-readable name. Optional.
musthavelist
string
Must have list ID.
sku
string
SKU ID.
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)
Request example
curl –i –X PATCH
https://test.inspector-cloud.com/api/v1.5/mhl/9378/
-H ‘Authorization: Token <<your_token>>’
-F "sku=32466" \
-F "sku1=32468" \
-F "sku2=32469" \
-F "sku3=32470" \
-F "sku4=32471" \
-F "sku5=32472" \
-F "sku5=32473"
Response example
Response code: 200
{
"id": 9378,
"name": "Сметана-Домик в деревне-300-10.00-Стакан/Ванночка",
"musthavelist": 56,
"sku": 32466,
"sku1": 32468,
"sku2": 32469,
"sku3": 32470,
"sku4": 32471,
"sku5": 32472,
"sku6": 32473
}
Path parameters
id
string
Request example
curl –i –X DELETE
https://test.inspector-cloud.com/api/v1.5/mhl/9378/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200