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

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

`POST /api/servicemedia/processes/files/csvImports`

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/servicemedia/processes/files/csvImports`
- Auth: HTTP bearer

## 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' | 'complianceImports'
  - `location` object
    - `bucket` string
    - `key` string
  - `companyUuid` string, uuid, required: Owning company. The NIL uuid marks an enterprise-level file, owned by `enterpriseUuid` instead.
  - `enterpriseUuid` string, uuid: Owning enterprise. Only set when `companyUuid` is the NIL uuid.
  - `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' | 'complianceImports'
      - `location` object
        - `bucket` string
        - `key` string
      - `companyUuid` string, uuid: Owning company. The NIL uuid marks an enterprise-level file, owned by `enterpriseUuid` instead.
      - `enterpriseUuid` string, uuid: Owning enterprise. Only set when `companyUuid` is the NIL 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
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

## Other responses

- `404`: default error response

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
