---
title: "Create a file and get an upload presigned URL for an object storage in the edm bucket"
method: POST
path: "/api/servicemedia/processes/files/edm"
tags: ["storedFiles"]
---

# Create a file and get an upload presigned URL for an object storage in the edm bucket

`POST /api/servicemedia/processes/files/edm`

## Request body

- object
  - `uuid` string, uuid
  - `createdAt` string, date-time
  - `createdBy` string, uuid
  - `lastUpdatedAt` string, date-time
  - `lastUpdatedBy` string, uuid
  - `lastUpdatedByAudience` string
  - `lastUpdatedByAudienceUuid` string, uuid
  - `lastUpdatedByImpersonatedBy` string, uuid
  - `lastUpdatedByCompanyUuid` string, uuid
  - `lastUpdatedByEnterpriseUuid` string, uuid
  - `name` string, required
  - `technicalName` string
  - `storageFolder` 'edm' | 'attachments' | 'workers' | 'documentSigning' | 'tmp' | 'publicImages' | 'customScripts' | 'csvImports'
  - `location` object
    - `bucket` string
    - `key` string
  - `companyUuid` string, uuid, required
  - `folderUuid` string, uuid
  - `metadata` object, required
    - `size` number, required
    - `mimeType` string, required
    - `type` 'audio' | 'image' | 'video' | 'text' | 'application', required
    - `extension` string
  - `technical` boolean

## Response `200`

The file created and a presign object containing object storage data to upload the file.

- object
  - `data` object
    - `file` object
      - `uuid` string, uuid
      - `createdAt` string, date-time
      - `createdBy` string, uuid
      - `lastUpdatedAt` string, date-time
      - `lastUpdatedBy` string, uuid
      - `lastUpdatedByAudience` string
      - `lastUpdatedByAudienceUuid` string, uuid
      - `lastUpdatedByImpersonatedBy` string, uuid
      - `lastUpdatedByCompanyUuid` string, uuid
      - `lastUpdatedByEnterpriseUuid` string, uuid
      - `name` string
      - `technicalName` string
      - `storageFolder` 'edm' | 'attachments' | 'workers' | 'documentSigning' | 'tmp' | 'publicImages' | 'customScripts' | 'csvImports'
      - `location` object
        - `bucket` string
        - `key` string
      - `companyUuid` string, uuid
      - `folderUuid` string, uuid
      - `metadata` object
        - `size` number, required
        - `mimeType` string, required
        - `type` 'audio' | 'image' | 'video' | 'text' | 'application', required
        - `extension` string
      - `technical` boolean
    - `presignData` object
      - `url` string
  - `meta` ResponsesPartMeta
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `status` string
    - `duration` number
    - `size` number

## Other responses

- `404` — default error response

---

[API](https://skmtc.net/fountain/apis/hire-public-api.md) · [All operations](https://skmtc.net/fountain/apis/hire-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fountain/hire-public-api/versions/5f406c0e9462/schema)
