Open Context Protocol is live! 🚀 Read the launch post

reposRequestPagesBuild

Request a GitHub Pages build

POST /repos/{owner}/{repo}/pages/builds HTTP/1.1

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "title": "Page Build Status",
  "description": "Page Build Status",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "example": "https://api.github.com/repos/github/hello-world/pages/builds/latest"
    },
    "status": {
      "type": "string",
      "example": "queued"
    }
  },
  "required": [
    "url",
    "status"
  ]
}