# Get file categories

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v4/customers/file-categories:
    get:
      summary: Get file categories
      deprecated: false
      description: API ใช้สำหรับดึงข้อมูลของประเภทไฟล์
      tags:
        - Venio/Customer
      parameters:
        - name: search
          in: query
          description: สำหรับค้นหาชื่อประเภทไฟล์
          required: false
          example: หมวดหมู่ไฟล์
          schema:
            type: string
        - name: status
          in: query
          description: สถานะของประเภทไฟล์
          required: false
          example:
            - 'true'
            - 'false'
          schema:
            type: array
            items:
              type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: รหัส subscription key ลูกค้า
          required: true
          example: ''
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ประเภทของข้อมูลที่ส่งไปยัง server
          required: true
          example: application/json
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                x-apidog-refs: {}
                properties:
                  data:
                    properties:
                      id:
                        type: integer
                        description: id ของประเภทไฟล์
                      seq:
                        type: integer
                        description: ลำดับของประเภทไฟล์
                      name:
                        type: string
                        description: ชื่อของประเภทไฟล์
                      note:
                        type: string
                        description: บันทึกของประเภทไฟล์
                      isActive:
                        type: boolean
                        description: สถานะของประเภทไฟล์
                    x-apidog-orders:
                      - id
                      - seq
                      - name
                      - note
                      - isActive
                    required:
                      - id
                      - seq
                      - name
                      - note
                      - isActive
                    $ref: '#/components/schemas/Customer.FileCategory'
                  hasError:
                    type: boolean
                  statusCode:
                    type: integer
                  httpStatusCode:
                    type: integer
                  errorMessages:
                    type: string
                x-apidog-orders:
                  - data
                  - hasError
                  - statusCode
                  - httpStatusCode
                  - errorMessages
                type: object
                required:
                  - data
                  - statusCode
                  - httpStatusCode
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
        x-200:User authentication required V2.:
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Required%20authorization'
                  status:
                    $ref: '#/components/schemas/Response%20Error%20Msg%20'
                required:
                  - data
                  - status
                x-apidog-orders:
                  - data
                  - status
                x-apidog-ignore-properties: []
              example:
                data:
                  subCode: E9103
                  description: Authorization credentials required
                  metadata: {}
                status:
                  code: '4001'
                  description: Business error with 1 errors
          headers: {}
          x-apidog-name: User authentication required V2.
      security:
        - bearer: []
      x-apidog-folder: Venio/Customer
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-18754815-run
components:
  schemas:
    Customer.FileCategory:
      type: object
      properties:
        id:
          type: integer
          description: id ของประเภทไฟล์
        seq:
          type: integer
          description: ลำดับของประเภทไฟล์
        name:
          type: string
          description: ชื่อของประเภทไฟล์
        note:
          type: string
          description: บันทึกของประเภทไฟล์
        isActive:
          type: boolean
          description: สถานะของประเภทไฟล์
      x-apidog-orders:
        - id
        - seq
        - name
        - note
        - isActive
      required:
        - id
        - seq
        - name
        - note
        - isActive
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    'Response Error Msg ':
      type: object
      properties:
        code:
          type: string
          x-apidog-mock: '4001'
        description:
          type: string
          x-apidog-mock: Business error with 1 errors
      required:
        - code
        - description
      x-apidog-orders:
        - code
        - description
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Required authorization:
      type: object
      properties:
        subCode:
          type: string
          x-apidog-mock: E9103
        description:
          type: string
          x-apidog-mock: Authorization credentials required
        metadata:
          type: object
          properties: {}
          x-apidog-orders: []
          x-apidog-ignore-properties: []
      required:
        - subCode
        - description
        - metadata
      x-apidog-orders:
        - subCode
        - description
        - metadata
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
