---
title: "Upload Wiki page attachment"
method: PUT
path: "/wiki/page/attachment"
tags: ["wiki"]
---

# Upload Wiki page attachment

`PUT /wiki/page/attachment`

Stores a binary attachment for an existing Wiki page, replacing any attachment with the same name. Requires DAG write permission.

## Query parameters

- `remoteNode` string
- `workspace` string
- `path` string, required — Relative Wiki page path without extension, for example runbooks/deploy-guide. Must not start with / or contain ..
- `name` string, required

## Response `201`

Attachment stored

- WikiPageAttachmentResponse — A stored Wiki page attachment
  - `name` string, required — Attachment file name
  - `size` integer, required — Attachment size in bytes

## Other responses

- `400` — Invalid attachment name
- `404` — Wiki page not found
- `413` — Attachment too large
- `default` — Unexpected error

---

[API](https://skmtc.net/dagucloud/apis/dagu.md) · [All operations](https://skmtc.net/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/93cc41f2018a/schema)
