> ## Documentation Index
> Fetch the complete documentation index at: https://docs.altera.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Add/modify products' category

> This endpoint provides the means for adding/updating sale invoice Categories for later use in the system



## OpenAPI

````yaml /openapi/openapi.json post /company/products/categories
openapi: 3.1.0
info:
  title: OpenAPI
  version: '1.0'
  summary: OpenApi
  contact:
    name: Altera Support
    url: https://altera.co
    email: wsparcie@altera.co
  description: ''
  license:
    url: https://altera.co/regulamin
    name: Terms of services for Altera.app
servers:
  - url: https://api.altera.co
    description: Production endpoint (proxied)
security:
  - Authorization: []
tags:
  - name: Configuration
  - name: Data export
  - name: Expenses
  - name: Sales
paths:
  /company/products/categories:
    parameters: []
    post:
      tags:
        - Configuration
      summary: Add/modify products' category
      description: >-
        This endpoint provides the means for adding/updating sale invoice
        Categories for later use in the system
      operationId: postcompany-products-categories
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-examples:
                Example 1:
                  CompanyProductCategory_Id: 15451
                  CompanyProductCategoryName: Youth
                  enabled: false
              properties:
                CompanyProductCategory_Id:
                  type: integer
                  description: Required if performing update
                CompanyProductCategoryName:
                  type: string
                enabled:
                  type: boolean
              required:
                - CompanyProductCategoryName
                - enabled
            examples:
              Example 1:
                value:
                  CompanyProductCategory_Id: 15451
                  CompanyProductCategoryName: Youth
                  enabled: false
        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                x-examples:
                  Example 1:
                    result: OK
                    data:
                      categoryId: 15451
                properties:
                  result:
                    type: string
                    default: OK
                  data:
                    type: object
                    properties:
                      categoryId:
                        type: integer
              examples:
                Example 1:
                  value:
                    result: OK
                    data:
                      categoryId: 15451
components:
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````