/manufacturers/{id}
Retrieve detailed manufacturer information by ID, or updates the fields in the manufacturer card (specified or all).
Adress: https://instance_name/api/v1.5/manufacturers/{id}
Methods:
- GET — retrieve detailed manufacturer information by ID;
- PUT — update all manufacturer fields;
- PATCH — update some manufacturer 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/manufacturers/1234567890/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200
{
"id": 1234567890,
"name": "NARZAN"
}
Response definitions
id
string
Manufacturer ID.
name
string
Manufacturer name.
Path parameters
id
string
Request body parameters
id
string
New manufacturer ID.
name
string
Manufacturer new name.
Request example
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/manufacturers/123456/
-H ‘Authorization: Token <<your_token>>’
-F "id=195684" \
-F "name=BORJOMI"
Response example
Response code: 200
{
"id": 195684,
"name": "BORJOMI"
}
Response definitions
id
string
New manufacturer ID.
name
string
Manufacturer new name.
Path parameters
id
string
Request body parameters
id
string
New manufacturer ID.
name
string
Manufacturer new name.
Request example
curl –i –X PATCH
https://test.inspector-cloud.com/api/v1.5/manufacturers/123456/
-H ‘Authorization: Token <<your_token>>’
-F "name=Aqua Minerale"
Response example
Response code: 200
{
"id": 1234567890,
"name": "Aqua Minerale"
}
Response definitions
id
string
New manufacturer ID.
name
string
Manufacturer new name.