---
title: "Create a Wiki"
method: POST
path: "/nodes/{node_id}/wikis/"
tags: ["Nodes"]
---

# Create a Wiki

`POST /nodes/{node_id}/wikis/`

Creates a new wiki page on the node with the given `name` and, optionally, initial `content`.

A wiki page with the given name must not already exist on the node; attempting to create a duplicate will result in a **409 Conflict** response.
#### Permissions
Only contributors with write access to the node may create a wiki page (or any user, if the node's wiki has been made publicly editable).
#### Returns
Returns a JSON object with a `data` key containing the representation of the newly created wiki, if the request is successful.

If the request is unsuccessful, an `errors` key containing information about the failure will be returned. Refer to the [list of error codes](#tag/Errors-and-Error-Codes) to understand why this request may have failed.
Some common error cases:
 - `405 Method Not Allowed`: Returned if write access to this node has been restricted. The response will include the message "This action is no longer available. Contact support if you have any questions."

## Path parameters

- `node_id` string, required

## Request body

- object

## Response `201`

Created

## Other responses

- `405` — Returned if write access to this node has been restricted. The response will include the message "This action is no longer available. Contact support if you have any questions."

---

[API](https://skmtc.net/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.net/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/revisions/3c5164c707eb/schema)
