{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-wiki-create-parameters-v2-schema.json",
  "title": "WikiCreateParametersV2",
  "description": "Parameters for creating a new wiki",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-wikis-api-openapi.yml#/components/schemas/WikiCreateParametersV2",
  "type": "object",
  "required": [
    "name",
    "type",
    "projectId"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the wiki"
    },
    "type": {
      "type": "string",
      "description": "Type of wiki to create",
      "enum": [
        "projectWiki",
        "codeWiki"
      ]
    },
    "projectId": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the project to create the wiki in"
    },
    "repositoryId": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the repository to back the wiki (required for codeWiki)"
    },
    "mappedPath": {
      "type": "string",
      "description": "Root folder in the repository to use as wiki content (for codeWiki)"
    },
    "version": {
      "type": "object",
      "description": "Branch to use for the wiki",
      "properties": {
        "version": {
          "type": "string",
          "description": "Branch name"
        }
      }
    }
  }
}