Wikis

Create a new version of a wiki page

Changed on

Create a new version of a wiki page by submitting updated content.

This will store the updated content as a new version, incrementing the version number.

Permissions

  • Only contributors with write access can create new wiki versions.
  • Withdrawn registrations: Cannot create new wiki versions.
post/wikis/{wiki_id}/versions/

Request

  • Base URL
    https://api.test.osf.io/v2
  • URL
    https://api.test.osf.io/v2/wikis/{wiki_id}/versions/
  • Auth
    none declared

Path parameters

wiki_idstring required

The unique identifier for the wiki page.

Request body

Example request

{
  "data": {
    "type": "wiki-versions",
    "attributes": {
      "content": "This is an updated wiki page."
    }
  }
}

Response

Wiki version created successfully.

Changes