---
deprecated: true
search:
  tags:
    - Files
    - PUT
seo:
  description: >-
    Uploads a file to Cloudflare R2 storage, creates a database record…
    Reference for the PUT /api/v1/{team_slug}/{app_slug}/files endpoint in the
    Management API.
sidebar:
  label: Upload File
  badge: PUT
title: Upload File
type: openapi-operation
---
Uploads a file to Cloudflare R2 storage, creates a database record with metadata (title, type, visibility), and returns the created file with its CDN URL. Supports both public and private file visibility settings.
Deprecated: use POST /api/v2/&#123;team_slug&#125;/&#123;app_slug&#125;/dam/files instead.

`PUT /api/v1/{team_slug}/{app_slug}/files`

**Deprecated.**

**Request body** (`application/x-www-form-urlencoded`)

- `title` (string) — File title
- `type` (string) — File type
- `file` (any) — File file to upload

Request body example:

```json
{
  "title": "string",
  "type": "string",
  "file": null
}
```

**Responses**

- `200` — File uploaded successfully
- `201` — Successful response
- `400` — Invalid request
- `401` — Unauthorized access
- `500` — Internal server error

Response example, 200:

```json
{
  "data": {
    "attributes": [
      {
        "created_at": "string",
        "description": "string",
        "filterable": true,
        "id": "string",
        "key": "string",
        "name": "string",
        "template_key": "string",
        "template_name": "string",
        "translatable": true,
        "translations": {
          "description": [
            {
              "id": "string",
              "locale": "string",
              "value": "string"
            }
          ],
          "name": [
            {
              "id": "string",
              "locale": "string",
              "value": "string"
            }
          ]
        },
        "updated_at": "string",
        "values": {
          "property1": {
            "field_id": "string",
            "id": "string",
            "image_id": "string",
            "image_object": {
              "alt": "string",
              "app_id": "string",
              "blurhash": "string",
              "copyright": "string",
              "custom": {
                "property1": "string",
                "property2": "string"
              },
              "folder_id": "string",
              "id": "string",
              "parent_id": "string",
              "public": true,
              "status": "string",
              "title": "string",
              "url": "string"
            },
            "translations": {
              "value": [
                {
                  "id": "string",
                  "locale": "string",
                  "value": "string"
                }
              ]
            },
            "type": "string",
            "value": "string"
          },
          "property2": {
            "field_id": "string",
            "id": "string",
            "image_id": "string",
            "image_object": {
              "alt": "string",
              "app_id": "string",
              "blurhash": "string",
              "copyright": "string",
              "custom": {
                "property1": "string",
                "property2": "string"
              },
              "folder_id": "string",
              "id": "string",
              "parent_id": "string",
              "public": true,
              "status": "string",
              "title": "string",
              "url": "string"
            },
            "translations": {
              "value": [
                {
                  "id": "string",
                  "locale": "string",
                  "value": "string"
                }
              ]
            },
            "type": "string",
            "value": "string"
          }
        }
      }
    ],
    "created_at": "string",
    "folder_id": "string",
    "id": "string",
    "public": true,
    "title": "string",
    "translations": {
      "title": [
        {
          "id": "string",
          "locale": "string",
          "value": "string"
        }
      ],
      "type": [
        {
          "id": "string",
          "locale": "string",
          "value": "string"
        }
      ]
    },
    "type": "string",
    "updated_at": "string",
    "url": "string"
  },
  "details": [
    "string"
  ],
  "success": true
}
```
