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

# Create Support Case

> Creates a support case.



## OpenAPI

````yaml /api-reference/ops/openapi.json post /api/v1/ops/support-cases
openapi: 3.0.0
info:
  title: OABUS OPS API
  description: OABUS API
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/v1/ops/support-cases:
    post:
      tags:
        - Support Case
      summary: Create Support Case
      description: Creates a support case.
      operationId: createSupportCase
      parameters:
        - name: fields
          required: false
          in: query
          description: >-
            Comma-separated list of fields to include in the response. Supports
            dot notation for nested projection (e.g.
            `id,name,user.email,trips.route.id`). Unknown fields are silently
            dropped.
          schema:
            type: string
      requestBody:
        $ref: '#/components/requestBodies/CreateSupportCaseRequestBody2'
      responses:
        '201':
          $ref: '#/components/responses/CreateSupportCase201Response2'
        '400':
          $ref: '#/components/responses/CreateSupportCase400Response2'
        '401':
          $ref: '#/components/responses/CreateSupportCase401Response2'
        '403':
          $ref: '#/components/responses/CreateSupportCase403Response'
        '500':
          $ref: '#/components/responses/CreateSupportCase500Response2'
      security:
        - bearer: []
        - bearer: []
components:
  requestBodies:
    CreateSupportCaseRequestBody2:
      required: true
      content:
        application/json:
          schema:
            type: object
            properties:
              categoryId:
                description: Category identifier
                example: null
                nullable: true
                type: string
                format: uuid
              customerId:
                description: Customer identifier
                example: null
                nullable: true
                type: string
                format: uuid
              description:
                type: string
                maxLength: 5000
                description: Initial description
                example: Preciso de ajuda com minha viagem.
              priority:
                type: string
                enum:
                  - LOW
                  - MEDIUM
                  - HIGH
                  - URGENT
                description: Support case priority
                example: MEDIUM
              relatedOrderId:
                description: Related order identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedSalesTicketId:
                description: Related ticket identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedTripId:
                description: Related trip identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedTripReviewId:
                description: Related trip review identifier
                example: null
                nullable: true
                type: string
                format: uuid
              subject:
                type: string
                maxLength: 160
                description: Support case subject
                example: Problema na viagem
            required:
              - description
              - priority
              - subject
  responses:
    CreateSupportCase201Response2:
      content:
        application/json:
          schema:
            type: object
            properties:
              supportCaseId:
                type: string
                format: uuid
                description: Support case identifier
                example: 0197f150-40d6-7c1a-bdf2-c5884e07d401
              customerId:
                description: Customer identifier
                example: null
                nullable: true
                type: string
                format: uuid
              organizationId:
                description: Organization identifier
                example: null
                nullable: true
                type: string
                format: uuid
              companyId:
                description: Company identifier
                example: null
                nullable: true
                type: string
                format: uuid
              cooperativeId:
                description: Cooperative identifier
                example: null
                nullable: true
                type: string
                format: uuid
              transportOperatorId:
                description: Transport operator identifier
                example: null
                nullable: true
                type: string
                format: uuid
              openedByUserId:
                type: string
                format: uuid
                description: Opening user identifier
                example: 0197a7f6-2c4d-74ae-b89b-9d36d9c341f2
              assignedToUserId:
                description: Assigned user identifier
                example: null
                nullable: true
                type: string
                format: uuid
              categoryId:
                description: Category identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedOrderId:
                description: Related order identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedTripReviewId:
                description: Related trip review identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedSalesTicketId:
                description: Related ticket identifier
                example: null
                nullable: true
                type: string
                format: uuid
              relatedTripId:
                description: Related trip identifier
                example: null
                nullable: true
                type: string
                format: uuid
              code:
                type: string
                maxLength: 40
                description: Support case code
                example: SUP-20260710-0001
              scopeType:
                type: string
                enum:
                  - CUSTOMER
                  - COMPANY
                  - COOPERATIVE
                  - TRANSPORT_OPERATOR
                  - BKO
                description: Support case scope
                example: CUSTOMER
              priority:
                type: string
                enum:
                  - LOW
                  - MEDIUM
                  - HIGH
                  - URGENT
                description: Support case priority
                example: MEDIUM
              subject:
                type: string
                maxLength: 160
                description: Support case subject
                example: Problema na viagem
              description:
                type: string
                maxLength: 5000
                description: Initial description
                example: Preciso de ajuda com minha viagem.
              status:
                type: string
                enum:
                  - OPEN
                  - WAITING_CUSTOMER
                  - WAITING_SUPPORT
                  - RESOLVED
                  - CLOSED
                  - CANCELED
                description: Support case status
                example: OPEN
              resolvedAt:
                description: Resolved at
                example: null
                nullable: true
                type: string
                format: date-time
              closedAt:
                description: Closed at
                example: null
                nullable: true
                type: string
                format: date-time
              createdAt:
                type: string
                format: date-time
                description: Created at
                example: '2026-07-10T12:00:00.000Z'
              updatedAt:
                type: string
                format: date-time
                description: Updated at
                example: '2026-07-10T12:00:00.000Z'
              deletedAt:
                description: Deleted at
                example: null
                nullable: true
                type: string
                format: date-time
            required:
              - supportCaseId
              - openedByUserId
              - code
              - scopeType
              - priority
              - subject
              - description
              - status
              - createdAt
              - updatedAt
            additionalProperties: false
            description: Support case
      description: Created
    CreateSupportCase400Response2:
      content:
        application/json:
          example:
            errors:
              - message: required
                path: name
            message: Bad Request Error
            statusCode: 400
          schema:
            properties:
              message:
                type: string
              statusCode:
                enum:
                  - 400
                type: number
              errors:
                items:
                  properties:
                    message:
                      type: string
                    path:
                      type: string
                  required:
                    - message
                    - path
                  type: object
                type: array
            required:
              - message
              - statusCode
            type: object
      description: Bad Request Error
    CreateSupportCase401Response2:
      content:
        application/json:
          example:
            message: Missing or invalid access token
            statusCode: 401
          schema:
            properties:
              message:
                type: string
              statusCode:
                enum:
                  - 401
                type: number
            required:
              - message
              - statusCode
            type: object
      description: Unauthorized
    CreateSupportCase403Response:
      content:
        application/json:
          example:
            message: Insufficient permissions
            statusCode: 403
          schema:
            properties:
              message:
                type: string
              statusCode:
                enum:
                  - 403
                type: number
            required:
              - message
              - statusCode
            type: object
      description: Forbidden
    CreateSupportCase500Response2:
      content:
        application/json:
          example:
            message: Internal Server Error
            statusCode: 500
          schema:
            properties:
              message:
                type: string
              statusCode:
                enum:
                  - 500
                type: number
            required:
              - message
              - statusCode
            type: object
      description: Internal Server Error
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````