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/
Header Parameters
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
Body Parameters
- limitstringDescriptionThe number of results to return per page.
- offsetstringDescriptionThe initial index from which to return the results.
curl
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" 200
{
"count":2,
"next":"http://example.com",
"previous":"http://example.com",
"results":[
{
"id":1,
"name":"Adidas"
},
{
"id":2,
"name":"ADRENALINE"
}
]
}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/
Header Parameters
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
Body Parameters
- idstringDescriptionBrand ID.
- namestringDescriptionBrand name.
curl
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"201
{
"result": "CREATED"
}
Retrieve detailed information about a brand by ID
Request example
GET /brands/{id}
GET
https://instance_name/api/v1.5/brands/{id}
Path Parameters
- idstringrequiredDescriptionBrand ID.
Header Parameters
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
curl
curl –i –X GET
https://test.eyrene.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ 200
{
"id":1234567890111,
"name":"adidas"
}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}
Path Parameters
- idstringrequiredDescriptionBrand ID.
Header Parameters
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
Body Parameters
- idstringDescriptionNew brand ID.
- namestringDescriptionBrand new name.
curl
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" 200
{
"id": 1234567890112,
"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}
Path Parameters
- idstringrequiredDescriptionBrand ID.
Header Parameters
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
Body Parameters
- idstringDescriptionNew brand ID.
- namestringDescriptionBrand new name.
curl
curl –i –X PATCH
https://test.eyrene.com/api/v1.5/brands/1234567890111/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "name=Nike"200
{
"id":1234567890111,
"name":"Nike"
}Response parameters​

id string
New brand ID.

name string
Brand new name.