/brands/{id}
Retrieve detailed brand information by ID, or updates the fields in the brand card (specified or all).
Adress: https://instance_name/api/v1.5/brands/{id}
Methods:
- GET — retrieve detailed brand information by ID;
- PUT — update all brand fields;
- PATCH — update some brand fields.
Content-type: application/json
- GET
- PUT
- PATCH
Path parameters
id string
Request example
curl –i –X GET
https://test.inspector-cloud.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200
{
"id": 1234567890111,
"name": "adidas"
}
Response definitions
id string
Brand ID.
name string
Brand name.
Path parameters
id string
Request body parameters
id string
New brand ID.
name string
Brand new name.
Request example
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token <<your_token>>’
-F "id=1234567890112" \
-F "name=Persil"
Response example
Response code: 200
{
"id": 1234567890112,
"name": "Persil"
}
Response definitions
id string
New brand ID.
name string
Brand new name.
Path parameters
id string
Request body parameters
id string
New brand ID.
name string
Brand new name.
Request example
curl –i –X PATCH
https://test.inspector-cloud.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token <<your_token>>’
-F "name=Nike"
Response example
Response code: 200
{
"id": 1234567890111,
"name": "Nike"
}
Response definitions
id string
New brand ID.
name string
Brand new name.