---
title: "File Create"
method: POST
path: "/file/create"
tags: ["Files"]
---

# File Create

`POST /file/create`

## Request

- Base URL: `https://trace.wandb.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://trace.wandb.ai/file/create`
- Auth: none declared

## Request body `multipart/form-data`

- BodyFileCreateFileCreatePost
  - `project_id` string, required
  - `file` string, binary, required
  - `expected_digest` string, nullable

## Response `200`

Successful Response

- FileCreateRes
  - `digest` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `dd89fadfe4e4`: 1 breaking, 5 info
  - the `file` request property contentMediaType changed from `` to `application/octet-stream`
  - the endpoint scheme security `HTTPBasic` was removed from the API
  - added the new optional request property `expected_digest`
  - the `file` request property format was generalized from `binary` to no format
  - …2 more

[Operation history](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/changes/file/create/post.md)

---

[API](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api.md) - [All operations](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/revisions/f7643c49bf2e?raw)
