Create Brand
POST/api/v1/brands
Create Brand
Request​
- application/json
Body
brandId stringrequired
Possible values: non-empty
Custom ID of the brand
description stringnullable
Brand description
name stringrequired
Possible values: non-empty
Name of the brand
Responses​
- 201
- 400
- 401
- 422
- 429
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
data
object
Brand data
brandId stringrequired
Unique identifier of the brand
description string
Brand description
name stringrequired
Brand name
{
"data": {
"brandId": "brand_1",
"description": "Modern Menswear",
"name": "Acme"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
errors object
message string
{
"errorCode": "Generic",
"errors": {
"type": [
"Input type is not valid"
]
},
"message": "Validation error"
}
Rate-limiting Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Too many requests"
}
Internal Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
errors object
message string
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Loading...