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

# /realms/{realmId}/organizations/{organizationId}/custom-fields/document-upload



## OpenAPI

````yaml /api-reference/identity.openapi.json post /realms/{realmId}/organizations/{organizationId}/custom-fields/document-upload
openapi: 3.0.3
info:
  title: Identity
  version: 1.0.0
  description: >-
    Portão 3 identity API. Generated by tools/openapi from code (routes +
    security) and the hand-written spec (request/response bodies). 5 app groups
    run without the identity authorizer; publicPatterns is a best-effort subset.
    Confidence tiers: generated:typed=34 copied:manual=4 unknown=108.
servers:
  - url: https://api.identity.v2.portao3.com.br/
    description: production
  - url: https://api.identity.dev.3pers.com.br/
    description: development
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Current User
  - name: Custom Fields
  - name: API Clients
  - name: Users
  - name: Organizations
  - name: Realms
  - name: Feature Flags
  - name: Global Config
  - name: Push
  - name: Support
  - name: User Onboarding
  - name: Internal
paths:
  /realms/{realmId}/organizations/{organizationId}/custom-fields/document-upload:
    post:
      tags:
        - Custom Fields
      summary: >-
        /realms/{realmId}/organizations/{organizationId}/custom-fields/document-upload
      operationId: >-
        postRealmsByRealmIdOrganizationsByOrganizationIdCustomFieldsDocumentUpload
      parameters:
        - name: realmId
          in: path
          required: true
          schema:
            type: string
        - name: organizationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
                  enum:
                    - TRANSACTION
                    - SOLICITATION
                    - CARD
                    - WALLET
                    - CUSTOMER
                    - TRIP
                    - TRAVEL_PASSENGER
                mediaType:
                  type: string
                  enum:
                    - png
                    - jpg
                    - jpeg
                    - pdf
                filename:
                  type: string
                correlationId:
                  type: string
              required:
                - domain
                - mediaType
      responses:
        default:
          description: Undocumented response (no code type, no existing spec).
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````