Repzo API - SubCategory (1.0.0)

Download OpenAPI specification:Download

OpenAPI specification for Repzo SubCategory endpoints.

Find subcategories

query Parameters
object

Query parameters for filtering subcategories

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "total_result": 0,
  • "current_count": 0,
  • "total_pages": 0,
  • "current_page": 0,
  • "per_page": 0,
  • "first_page_url": "string",
  • "last_page_url": "string",
  • "next_page_url": "string",
  • "prev_page_url": "string",
  • "path": "string"
}

Create a subcategory

Request Body schema: application/json
name
required
string

Name of the subcategory

parent_id
required
string

ID of the parent category

local_name
string

Localized name of the subcategory

disabled
boolean

Whether the subcategory is disabled

photo
string

Photo URL of the subcategory

position
number

Position of the subcategory

company_namespace
Array of strings

Company namespaces

object

Integration metadata

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "parent_id": "string",
  • "local_name": "string",
  • "disabled": true,
  • "photo": "string",
  • "position": 0,
  • "company_namespace": [
    ],
  • "integration_meta": { }
}

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "parent_id": "string",
  • "local_name": "string",
  • "disabled": true,
  • "photo": "string",
  • "position": 0,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Get a subcategory by ID

path Parameters
id
required
string
query Parameters
object

Responses

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "parent_id": "string",
  • "local_name": "string",
  • "disabled": true,
  • "photo": "string",
  • "position": 0,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Update a subcategory

path Parameters
id
required
string
Request Body schema: application/json
name
string

Name of the subcategory

parent_id
string

ID of the parent category

local_name
string

Localized name of the subcategory

disabled
boolean

Whether the subcategory is disabled

photo
string

Photo URL of the subcategory

position
number

Position of the subcategory

company_namespace
Array of strings

Company namespaces

object

Integration metadata

_id
string

Unique identifier for the subcategory

createdAt
string <date-time>

Creation timestamp

updatedAt
string <date-time>

Last update timestamp

__v
number

Version number

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "parent_id": "string",
  • "local_name": "string",
  • "disabled": true,
  • "photo": "string",
  • "position": 0,
  • "company_namespace": [
    ],
  • "integration_meta": { },
  • "_id": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "parent_id": "string",
  • "local_name": "string",
  • "disabled": true,
  • "photo": "string",
  • "position": 0,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Remove a subcategory

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "parent_id": "string",
  • "local_name": "string",
  • "disabled": true,
  • "photo": "string",
  • "position": 0,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}