Inspectorio BRAND API
The BRAND API from Inspectorio — 2 operation(s) for brand.
The BRAND API from Inspectorio — 2 operation(s) for brand.
openapi: 3.0.3
info:
title: File Management ANALYTICS BRAND API
version: v3
servers:
- description: Production Environment
url: https://files-integration.inspectorio.com
- description: Pre-Production Environment
url: https://files-integration.pre.inspectorio.com
tags:
- name: BRAND
paths:
/api/v1/brands:
get:
summary: List Brands
description: List Brands
parameters:
- in: query
name: offset
required: false
schema:
default: 0
minimum: 0
type: integer
- description: Limit result of list
in: query
name: limit
required: false
schema:
default: 10
maximum: 100
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BrandListResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestApiError'
description: Bad request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthenticatedApiError'
description: Unauthorized
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateApiError'
description: Validation Error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyResponsesApiError'
description: Rate-limiting Error
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/InternalApiError'
description: Internal Error
tags:
- BRAND
post:
summary: Create Brand
description: Create Brand
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BrandCreate'
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/BrandResponse'
description: Created
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestApiError'
description: Bad request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthenticatedApiError'
description: Unauthorized
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateApiError'
description: Validation Error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyResponsesApiError'
description: Rate-limiting Error
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/InternalApiError'
description: Internal Error
tags:
- BRAND
/api/v1/brands/{brand_id}:
delete:
summary: Delete Brand
description: Delete Brand
parameters:
- in: path
name: brand_id
required: true
schema:
type: string
responses:
'204':
content:
application/json:
schema: {}
description: No Content
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestApiError'
description: Bad request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthenticatedApiError'
description: Unauthorized
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateApiError'
description: Validation Error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyResponsesApiError'
description: Rate-limiting Error
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/InternalApiError'
description: Internal Error
tags:
- BRAND
get:
summary: Get Brand
description: Get Brand
parameters:
- in: path
name: brand_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BrandResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestApiError'
description: Bad request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthenticatedApiError'
description: Unauthorized
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateApiError'
description: Validation Error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyResponsesApiError'
description: Rate-limiting Error
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/InternalApiError'
description: Internal Error
tags:
- BRAND
put:
summary: Update Brand
description: Update Brand
parameters:
- in: path
name: brand_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BrandUpdate'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BrandResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestApiError'
description: Bad request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthenticatedApiError'
description: Unauthorized
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateApiError'
description: Validation Error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyResponsesApiError'
description: Rate-limiting Error
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/InternalApiError'
description: Internal Error
tags:
- BRAND
components:
schemas:
ValidateApiError:
properties:
errorCode:
example: Generic
type: string
errors:
example:
type:
- Input type is not valid
type: object
message:
example: Validation error
type: string
type: object
BadRequestApiError:
properties:
errorCode:
example: Generic
type: string
message:
example: Bad Request
type: string
type: object
BrandResponse:
properties:
data:
$ref: '#/components/schemas/Brand'
description: Brand data
type: object
BrandCreate:
properties:
brandId:
description: Custom ID of the brand
example: brand_1
minLength: 1
type: string
description:
description: Brand description
example: Modern Menswear
nullable: true
type: string
name:
description: Name of the brand
example: Acme
minLength: 1
type: string
required:
- brandId
- name
type: object
InternalApiError:
properties:
errorCode:
example: Generic
type: string
errors:
example:
system:
- Internal error detail message
type: object
message:
example: Internal server error
type: string
type: object
Brand:
properties:
brandId:
description: Unique identifier of the brand
example: brand_1
type: string
description:
description: Brand description
example: Modern Menswear
type: string
name:
description: Brand name
example: Acme
type: string
required:
- brandId
- name
type: object
BrandUpdate:
properties:
description:
description: Brand description
example: Modern Menswear
nullable: true
type: string
name:
description: Brand name
example: Acme
minLength: 1
type: string
type: object
UnauthenticatedApiError:
properties:
errorCode:
example: Generic
type: string
message:
example: Cannot retrieve session data because of expired token
type: string
type: object
BrandListResponse:
properties:
data:
description: Brands data
items:
$ref: '#/components/schemas/Brand'
type: array
limit:
maximum: 100
minimum: 1
type: integer
offset:
minimum: 0
type: integer
total:
type: integer
required:
- limit
- offset
- total
type: object
TooManyResponsesApiError:
properties:
errorCode:
example: Generic
type: string
message:
example: Too many requests
type: string
type: object