Create a wiki page ​
POST/api/v1/workspaces/{slug}/pages/
Create a workspace page
Path Parameters ​
slug:requiredstringWorkspace slug
Body Parameters ​
name:requiredstringName.
access:optionalinteger0- Public1- Private
color:optionalstringColor.
is_locked:optionalbooleanIs locked.
archived_at:optionalstringArchived at.
view_props:optionalobjectView props.
logo_props:optionalobjectLogo props.
external_id:optionalstringExternal id.
external_source:optionalstringExternal source.
description_html:requiredstringDescription html.
Scopes ​
wiki.pages:write
Create a wiki page
bash
curl -X POST \
"https://api.plane.so/api/v1/workspaces/my-workspace/pages/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Example Name",
"access": 0,
"color": "Example Name",
"is_locked": true,
"archived_at": "2024-01-01",
"view_props": "example-value",
"logo_props": "example-value",
"external_id": "550e8400-e29b-41d4-a716-446655440000",
"external_source": "github",
"description_html": "<p>Example content</p>"
}'python
import requests
response = requests.post(
"https://api.plane.so/api/v1/workspaces/my-workspace/pages/",
headers={"X-API-Key": "your-api-key"},
json={
"name": "Example Name",
"access": 0,
"color": "Example Name",
"is_locked": true,
"archived_at": "2024-01-01",
"view_props": "example-value",
"logo_props": "example-value",
"external_id": "550e8400-e29b-41d4-a716-446655440000",
"external_source": "github",
"description_html": "<p>Example content</p>"
}
)
print(response.json())javascript
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/pages/", {
method: "POST",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Example Name",
access: 0,
color: "Example Name",
is_locked: true,
archived_at: "2024-01-01",
view_props: "example-value",
logo_props: "example-value",
external_id: "550e8400-e29b-41d4-a716-446655440000",
external_source: "github",
description_html: "<p>Example content</p>",
}),
});
const data = await response.json();Response201
json
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"description_html": "<p>Example content</p>",
"owned_by": "550e8400-e29b-41d4-a716-446655440000",
"access": 0,
"color": "Example Name",
"is_locked": true,
"archived_at": "2024-01-01",
"workspace": "550e8400-e29b-41d4-a716-446655440000",
"created_by": "550e8400-e29b-41d4-a716-446655440000",
"updated_by": "550e8400-e29b-41d4-a716-446655440000"
}
