---
title: "Submit a Document File Before an Entity is Created"
method: PUT
path: "/documents/{document_token}"
tags: ["Documents"]
---

# Submit a Document File Before an Entity is Created

`PUT /documents/{document_token}`

Now that the metadata for the file has been specified, you just need to stream the file to the location we’ve allocated for it. The response should be the same as for the preceding `POST` request endpoint except `uploaded` will be true.

## Response `200`

Document

- object[]
  - `document_token` string
  - `type` string
  - `name` string
  - `extension` string
  - `uploaded` boolean
  - `timestamp` number
  - `approved` string
  - `approval_agent_email` string
  - `approval_timestamp` number
  - `notes` object[]
    - `note` string
    - `note_author_agent_email` string
    - `created_at` number
    - `updated_at` number

---

[API](https://skmtc.dev/alloy/apis/alloy-api.md) · [All operations](https://skmtc.dev/alloy/apis/alloy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alloy/alloy-api/revisions/405799de4d2a/schema)
