Requests must be authenticated. See REST API authentication for details.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /projects/:project_id/wiki/index.json | List all wiki pages in a project. |
GET | /projects/:project_id/wiki/:title.json | Get a wiki page by title. |
PUT | /projects/:project_id/wiki/:title.json | Create or update a wiki page. |
DELETE | /projects/:project_id/wiki/:title.json | Delete a wiki page. |
The Wiki API uses
PUT for both creating and updating pages — if the page does not exist, it is created.List wiki pages
GET /projects/:project_id/wiki/index.json
Returns an index of all wiki pages in the project, ordered alphabetically.
Path parameters
The project’s numeric ID or identifier string.
Example
Response
Get wiki page
GET /projects/:project_id/wiki/:title.json
Returns the content and metadata of a single wiki page. You can optionally request a specific historical version.
Path parameters
The project’s numeric ID or identifier string.
The wiki page title. Spaces should be encoded as
%20 or _.Query parameters
A specific version number to retrieve. Omit to get the latest version.
Comma-separated list of associations to embed. Valid values:
attachments.Examples
Response fields
Example response
Create or update wiki page
PUT /projects/:project_id/wiki/:title.json
Creates a wiki page if it does not exist, or updates an existing page. The authenticated user must have the Edit wiki pages permission.
Path parameters
The project’s numeric ID or identifier string.
The wiki page title to create or update.
Request body
Wrap all fields inside awiki_page object.
The full page content in Textile or Markdown format (depending on your Redmine configuration).
An edit comment to associate with this version.
The current version number of the page. Include this to enable optimistic locking — if the page has been modified since you fetched it, the update will fail with
409 Conflict.Title of the parent wiki page, to set the page hierarchy.
Examples
201 Created. A successful update returns 200 OK.
Delete wiki page
DELETE /projects/:project_id/wiki/:title.json
Deletes a wiki page and all of its history. The authenticated user must have the Delete wiki pages permission.
Path parameters
The project’s numeric ID or identifier string.
The title of the wiki page to delete.
Example
200 OK.