/mhl/{id}
Retrieve detailed MHL information by ID, or updates the fields in the MHL (specified or all). Also allows you to delete the MHL via DELETE
method.
Adress: https://instance_name/api/v1.5/mhl/{id}
Methods:
- GET — retrieve detailed MHL information by ID;
- PUT — update all MHL fields;
- PATCH — update some MHL fields.
- DELETE — delete MHL.
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/31/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200
{
"id": 31,
"name": "TOP 45",
"display": 19
}
Response definitions
id
string
Unique ID.
name
string
Human-readable name. Optional
display
string
Display ID.
Path parameters
id
string
Request body parameters
id
string
Unique ID.
name
string
Human-readable name. Optional
display
string
Display ID.
Request example
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/mhl/31/
-H ‘Authorization: Token <<your_token>>’
-F "id=45" \
-F "name=new_products_matrix" \
-F "display=11"
Response example
Response code: 200
{
"id": 45,
"name": "new_products_matrix",
"display": 11
}
Path parameters
id
string
Request example
id
string
Unique ID.
name
string
Human-readable name. Optional
display
string
Display ID.
Request example
curl –i –X PATCH
https://test.inspector-cloud.com/api/v1.5/mhl/31/
-H ‘Authorization: Token <<your_token>>’
-F "name=new_products_matrix"
Response example
Response code: 201
{
"id": 31,
"name": "new_products_matrix",
"display": 19
}
Path parameters
id
string
Request example
curl –i –X DELETE
https://test.inspector-cloud.com/api/v1.5/mhl/31/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200