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

# Anexar arquivo a um processo (multipart/form-data, campo file)



## OpenAPI

````yaml https://api.juridiq.com.br/api-docs/client/openapi.json post /file/law-suits/{id}
openapi: 3.1.0
info:
  title: Juridiq API — Documentação para Integradores
  description: ''
  version: 1.0.0
servers:
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /file/law-suits/{id}:
    post:
      tags:
        - Files
      summary: Anexar arquivo a um processo (multipart/form-data, campo file)
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: ID da entidade (processo, cliente ou tarefa)
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ID interno do arquivo (quando existir no banco)
                  name:
                    type: string
                    description: Nome do arquivo
                  previewUrl:
                    type: string
                    description: URL temporária para visualização
                  downloadUrl:
                    type: string
                    description: URL temporária para download
                  size:
                    type: string
                    description: Tamanho formatado
                  type:
                    type: object
                    properties:
                      extension:
                        type: string
                        description: MIME type ou extensão
                      formatted:
                        type: string
                        description: Tipo formatado (pdf, word, png, etc.)
                    required:
                      - extension
                      - formatted
                    additionalProperties: false
                  createdAt:
                    type: string
                    description: Data de criação formatada
                required:
                  - name
                  - previewUrl
                  - downloadUrl
                  - size
                  - type
                  - createdAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-juridiq-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-juridiq-api-key.

````