API
Image Recognition API
Brands
Methods allow you to get a complete list or a specific brand in Eyrene, view information about them, update all fields, or only select brand fields.

Retrieves a list of brands.
Request example
GET /brands
GET
https://instance_name/api/v1.5/brands/
curl –i –X GET
https://test.eyrene.com/api/v1.5/brands/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
–F "limit=2" \
–F "offset=0" Response parameters​

count integer
The number of brands.

next string (uri) Nullable
Next page.

previous string (uri) Nullable
Previous page.

results array of objects
An array of objects with information about brands:
- id string Brand ID.
- name string Brand name.



Сreate a new brand.
Request example
POST /brands
POST
https://instance_name/api/v1.5/brands/
curl –i –X POST
https://test.eyrene.com/api/v1.5/brands/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
–F "id=1234567890111" \
–F "name=Persil"
Retrieve detailed information about a brand by ID
Request example
GET /brands/{id}
GET
https://instance_name/api/v1.5/brands/{id}
curl –i –X GET
https://test.eyrene.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ Response parameters​

id string
Brand ID.

name string
Brand name.
/brands/{id}


Update all brand fields.
Request example
PUT /brands/{id}
PUT
https://instance_name/api/v1.5/brands/{id}
curl –i –X PUT
https://test.eyrene.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=1234567890112" \
-F "name=Persil" Response parameters​

id string
New brand ID.

name string
Brand new name.



Update some of the fields in the brand.
Request example
PATCH /brands/{id}
PATCH
https://instance_name/api/v1.5/brands/{id}
curl –i –X PATCH
https://test.eyrene.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "name=Nike"Response parameters​

id string
New brand ID.

name string
Brand new name.