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

# Upload documents

> Upload supporting documents for the related property or contents



## OpenAPI

````yaml /property-api-reference/openapi.json post /policies/{propertyPolicy}/documents
openapi: 3.0.1
info:
  title: OpenAPI For Property Insurance
  description: APIs for requesting and managing policies for your clients
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://sandbox.yasmina.ai/api/v1/property
  - url: https://production.yasmina.ai/api/v1/property
security:
  - bearerAuth: []
paths:
  /policies/{propertyPolicy}/documents:
    post:
      tags:
        - Policies
      summary: Upload documents
      description: Upload supporting documents for the related property or contents
      parameters:
        - required: true
          name: propertyPolicy
          in: path
          schema:
            type: integer
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                document:
                  type: string
                  description: Supporting document
                  format: binary
      responses:
        '200':
          description: Successfully uploaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Problem in the values that you submitted
          content:
            application/json:
              schema:
                type: object
                example:
                  code: '42201'
                  message: The document field cannot be empty.
                  details:
                    document:
                      - The document field cannot be empty.
components:
  schemas:
    Policy:
      type: object
      properties:
        id:
          type: integer
          example: 655
        meta_data:
          type: object
          properties:
            insurance_provider:
              type: string
              example: walaa
            has_agreed_to_terms_and_conditions:
              type: boolean
              example: true
            start_date:
              type: string
              format: date
              example: '2025-12-11'
            property_cost:
              type: number
              example: 500000
            documents:
              type: array
              items:
                type: string
                example: gOSkcUZnQQpV3YLvUygSrmkTh6L9g3gxKvFbIfwU.docx
            personal_details:
              type: object
              properties:
                name:
                  type: string
                  example: Fahad Al-Qahtani
                email:
                  type: string
                  format: email
                  example: fahad@gmail.com
                birthdate:
                  type: string
                  format: date
                  example: '1990-05-14'
                nationality:
                  type: string
                  example: SA
                phone_number:
                  type: string
                  example: '+966501234567'
                nationality_id:
                  type: string
                  example: '1023456789'
            building_details:
              type: object
              properties:
                building_age:
                  type: integer
                  example: 8
                building_type:
                  type: string
                  example: Apartment
                apartment_size:
                  type: integer
                  example: 120
            address:
              type: object
              properties:
                street_name:
                  type: string
                  example: King Abdulaziz Road
                building_number:
                  type: string
                  example: '345'
                district_name:
                  type: string
                  example: Al Olaya
                city_name:
                  type: string
                  example: Riyadh
                additional_number:
                  type: string
                  example: '1234'
                zip_code:
                  type: string
                  example: '12233'
                unit_number:
                  type: string
                  example: 12B
        provider_policy_id:
          type: string
          nullable: true
          example: null
        provider_policy:
          type: string
          nullable: true
          example: null
        client_id:
          type: string
          format: uuid
          example: 9f7db0ed-0783-4654-9b18-47c316809204
        created_at:
          type: string
          format: date-time
          example: '2025-07-28T09:54:03.000000Z'
        canceled_at:
          type: string
          format: date-time
          nullable: true
          example: null
        status:
          type: integer
          example: 0
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````