{
  "opencollection": "1.0.0",
  "info": {
    "name": "Azure DevOps Wiki API",
    "version": "7.1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Wikis",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure DevOps List wikis",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              }
            ]
          },
          "docs": "Returns a list of all wikis in the project. A project typically has one project wiki and may have additional code wikis that are backed by specific Git repository folders.\n"
        },
        {
          "info": {
            "name": "Azure DevOps Create a wiki",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new wiki for a project. You can create a project wiki (backed by a dedicated wiki repository) or a code wiki (backed by an existing Git repository and folder path). Only one project wiki can exist per project.\n"
        },
        {
          "info": {
            "name": "Azure DevOps Get a wiki",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/:wikiIdentifier",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              },
              {
                "name": "wikiIdentifier",
                "value": "",
                "type": "path",
                "description": "Wiki GUID or wiki name"
              },
              {
                "name": "versionDescriptor",
                "value": "",
                "type": "query",
                "description": "Version descriptor for the wiki (branch or tag)"
              }
            ]
          },
          "docs": "Returns detailed information about a specific wiki, including its backing Git repository ID, mapped path (for code wikis), and current version. The wikiIdentifier can be either the wiki GUID or its name.\n"
        },
        {
          "info": {
            "name": "Azure DevOps Update a wiki",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/:wikiIdentifier",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              },
              {
                "name": "wikiIdentifier",
                "value": "",
                "type": "path",
                "description": "Wiki GUID or wiki name"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the wiki by changing the default branch for a code wiki's backed repository. This is useful when the main branch of the backing repository has been renamed.\n"
        },
        {
          "info": {
            "name": "Azure DevOps Delete a wiki",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/:wikiIdentifier",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              },
              {
                "name": "wikiIdentifier",
                "value": "",
                "type": "path",
                "description": "Wiki GUID or wiki name"
              }
            ]
          },
          "docs": "Deletes a wiki. For a project wiki, this deletes the wiki and the backing Git repository. For a code wiki, this removes the wiki but leaves the backing repository intact. This operation cannot be undone.\n"
        }
      ]
    },
    {
      "info": {
        "name": "Wiki Pages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure DevOps Get a wiki page",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/:wikiIdentifier/pages",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              },
              {
                "name": "wikiIdentifier",
                "value": "",
                "type": "path",
                "description": "Wiki GUID or wiki name"
              },
              {
                "name": "path",
                "value": "/Getting-Started",
                "type": "query",
                "description": "Wiki page path (e.g., /MyPage or /Folder/SubPage)"
              },
              {
                "name": "recursionLevel",
                "value": "",
                "type": "query",
                "description": "Recursion level for subpages"
              },
              {
                "name": "versionDescriptor",
                "value": "",
                "type": "query",
                "description": "Version descriptor (branch or tag) to read the page from"
              },
              {
                "name": "includeContent",
                "value": "",
                "type": "query",
                "description": "Whether to include the page content in the response"
              }
            ]
          },
          "docs": "Returns the content and metadata for a wiki page at a given path. The path parameter is required to specify which page to retrieve. Returns the Markdown content of the page and optional metadata such as git commit information.\n"
        },
        {
          "info": {
            "name": "Azure DevOps Create or update a wiki page",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/:wikiIdentifier/pages",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              },
              {
                "name": "wikiIdentifier",
                "value": "",
                "type": "path",
                "description": "Wiki GUID or wiki name"
              },
              {
                "name": "path",
                "value": "/Getting-Started",
                "type": "query",
                "description": "Path of the wiki page to create or update"
              },
              {
                "name": "comment",
                "value": "",
                "type": "query",
                "description": "Comment for the commit creating this page update"
              },
              {
                "name": "versionDescriptor",
                "value": "",
                "type": "query",
                "description": "Branch to create or update the page on"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new wiki page or updates an existing page at the specified path. The request body must contain the Markdown content for the page. To update an existing page, include the current page version in the If-Match header to prevent overwriting concurrent changes.\n"
        },
        {
          "info": {
            "name": "Azure DevOps Delete a wiki page",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/:wikiIdentifier/pages",
            "params": [
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Azure DevOps REST API version. Use 7.1 for the latest stable version."
              },
              {
                "name": "wikiIdentifier",
                "value": "",
                "type": "path",
                "description": "Wiki GUID or wiki name"
              },
              {
                "name": "path",
                "value": "/Old-Page",
                "type": "query",
                "description": "Path of the wiki page to delete"
              },
              {
                "name": "comment",
                "value": "",
                "type": "query",
                "description": "Comment for the deletion commit"
              },
              {
                "name": "versionDescriptor",
                "value": "",
                "type": "query",
                "description": "Branch to delete the page from"
              }
            ]
          },
          "docs": "Deletes a wiki page at the specified path. This commits a deletion to the backing Git repository. Deleted pages cannot be recovered except through the backing repository's Git history.\n"
        }
      ]
    }
  ],
  "bundled": true
}