---
title: "Create Deal File Upload"
method: POST
path: "/api/deals/{deal_id}/files/uploads"
tags: ["dealFiles"]
---

# Create Deal File Upload

`POST /api/deals/{deal_id}/files/uploads`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/deals/{deal_id}/files/uploads`
- Auth: none declared

## Path parameters

- `deal_id` integer, required

## Request body

- StoredFileUploadRequest
  - `filename` string, required
  - `content_type` string, required
  - `file_size_bytes` integer, required
  - `replace_file_identifier` string, nullable
  - `permit_id` integer, nullable
  - `incentive_application_id` integer, nullable
  - `project_area` '' | 'post_install'

## Response `200`

OK

- StoredFileUploadResponse
  - `file` StoredFileSchema, required
    - `id` integer, required
    - `identifier` string, required
    - `display_name` string, required
    - `content_type` string, required
    - `file_size_bytes` integer, required
    - `current_version_number` integer, required
    - `version_count` integer, required
    - `created_by_name` string, nullable
    - `created_at` string, date-time, required
    - `uploaded_at` string, date-time, required
    - `permit_id` integer, nullable
    - `incentive_application_id` integer, nullable
    - `project_area` string
  - `version_identifier` string, required
  - `presigned_url` string, required

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-25** `a181801f95f1`: 6 info
  - added the new optional request property `incentive_application_id`
  - added the new optional request property `permit_id`
  - added the new optional request property `project_area`
  - added the optional property `file/incentive_application_id` to the response with the `200` status
  - …2 more

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/deals/:deal_id/files/uploads/post.md)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
