Create Brand
POSThttps://sight.inspectorio.com/api/v1/brands
Create Brand
Request​
- application/json
Body
brandIdstringrequired
Custom ID of the brand
Possible values: non-empty
Example:
brand_1
descriptionstringnullable
Brand description
Example:
Modern Menswear
namestringrequired
Name of the brand
Possible values: non-empty
Example:
Acme
Responses​
- 201
- 400
- 401
- 422
- 429
- 500
Created
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"brandId": "brand_1",
"description": "Modern Menswear",
"name": "Acme"
}
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Bad Request
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Cannot retrieve session data because of expired token
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Validation Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"type":["Input type is not valid"]}
messagestring
Example:
Validation error
{
"errorCode": "Generic",
"errors": {
"type": [
"Input type is not valid"
]
},
"message": "Validation error"
}
Rate-limiting Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Too many requests
{
"errorCode": "Generic",
"message": "Too many requests"
}
Internal Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"system":["Internal error detail message"]}
messagestring
Example:
Internal server error
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Authorization: apiKey
name: apiKeytype: apiKeyin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://sight.inspectorio.com/api/v1/brands' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'apiKey: <apiKey>' \
-d '{
"brandId": "brand_1",
"description": "Modern Menswear",
"name": "Acme"
}'
ResponseClear