> ## 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 Attachment

> Creates a support case attachment.



## OpenAPI

````yaml /api-reference/ops/openapi.json post /api/v1/ops/support-cases/{supportCaseId}/attachments
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/{supportCaseId}/attachments:
    post:
      tags:
        - Support Case
      summary: Create Support Case Attachment
      description: Creates a support case attachment.
      operationId: createSupportCaseAttachment
      parameters:
        - name: supportCaseId
          required: true
          in: path
          schema:
            type: string
            format: uuid
            description: Support case identifier
            example: 0197f150-40d6-7c1a-bdf2-c5884e07d401
        - 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/CreateSupportCaseAttachmentRequestBody'
      responses:
        '201':
          $ref: '#/components/responses/CreateSupportCaseAttachment201Response'
        '400':
          $ref: '#/components/responses/CreateSupportCaseAttachment400Response'
        '401':
          $ref: '#/components/responses/CreateSupportCaseAttachment401Response'
        '403':
          $ref: '#/components/responses/CreateSupportCaseAttachment403Response'
        '500':
          $ref: '#/components/responses/CreateSupportCaseAttachment500Response'
      security:
        - bearer: []
        - bearer: []
components:
  requestBodies:
    CreateSupportCaseAttachmentRequestBody:
      required: true
      content:
        application/json:
          schema:
            type: object
            properties:
              contentType:
                type: string
                maxLength: 255
                description: File MIME type
                example: image/png
              fileName:
                type: string
                maxLength: 255
                description: Original file name
                example: evidence.png
              sizeBytes:
                type: integer
                exclusiveMinimum: true
                description: File size in bytes
                example: 2048
              storageKey:
                type: string
                maxLength: 1024
                description: Private storage key
                example: support-cases/0197f150/evidence.png
              supportCaseMessageId:
                description: Support case message identifier
                example: null
                nullable: true
                type: string
                format: uuid
            required:
              - contentType
              - fileName
              - sizeBytes
              - storageKey
  responses:
    CreateSupportCaseAttachment201Response:
      content:
        application/json:
          schema:
            type: object
            properties:
              supportCaseAttachmentId:
                type: string
                format: uuid
                description: Support case attachment identifier
                example: 0197f153-4269-7183-b91c-4d73c8ccb191
              supportCaseId:
                type: string
                format: uuid
                description: Support case identifier
                example: 0197f150-40d6-7c1a-bdf2-c5884e07d401
              supportCaseMessageId:
                description: Support case message identifier
                example: null
                nullable: true
                type: string
                format: uuid
              uploadedByUserId:
                description: Uploading user identifier
                example: null
                nullable: true
                type: string
                format: uuid
              storageKey:
                type: string
                maxLength: 1024
                description: Private storage key
                example: support-cases/0197f150/evidence.png
              fileName:
                type: string
                maxLength: 255
                description: Original file name
                example: evidence.png
              contentType:
                type: string
                maxLength: 255
                description: File MIME type
                example: image/png
              sizeBytes:
                type: integer
                exclusiveMinimum: true
                description: File size in bytes
                example: 2048
              createdAt:
                type: string
                format: date-time
                description: Created at
                example: '2026-07-10T12:00:00.000Z'
              deletedAt:
                description: Deleted at
                example: null
                nullable: true
                type: string
                format: date-time
            required:
              - supportCaseAttachmentId
              - supportCaseId
              - storageKey
              - fileName
              - contentType
              - sizeBytes
              - createdAt
            additionalProperties: false
            description: Support case attachment
      description: Created
    CreateSupportCaseAttachment400Response:
      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
    CreateSupportCaseAttachment401Response:
      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
    CreateSupportCaseAttachment403Response:
      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
    CreateSupportCaseAttachment500Response:
      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

````