---
title: "Create a Document on a Workflow"
method: POST
path: "/workflows/{id}/documents/{attributeId}"
tags: ["Workflows"]
---

# Create a Document on a Workflow

`POST /workflows/{id}/documents/{attributeId}`

Create a document in the specified workflow attribute. If a document key to an existing draft document is provided, the new file will be uploaded as a new version of the existing document. For all other non-draft documents and when document key is absent, this operation will only append the new document to the document attribute array. Please note that to upload a signed document, reference the [Create a Signed Document on a Workflow](https://developer.ironcladapp.com/reference/workflow-upload-signed-document) endpoint.

**OAuth Scope required:** `public.workflows.createDocuments`

## Path parameters

- `id` string, required
- `attributeId` string, required

## Headers

- `x-as-user-email` string
- `x-as-user-id` string

## Response `204`

204

- object

## Other responses

- `400` — 400
- `404` — 404

---

[API](https://skmtc.net/ironcladapp/apis/ironclad-public-api.md) · [All operations](https://skmtc.net/ironcladapp/apis/ironclad-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ironcladapp/ironclad-public-api/versions/9459b4cfc1e0/schema)
