anchor.diff:  <table>
   <tbody>
     <tr><th><code>name</code></th><td>The name of the pipeline.<p class="Docs__api-param-eg"><em>Example:</em> <code>"New Pipeline"</code></p></td></tr>
  +  <tr><th><code>repository</code></th><td>The repository URL.<p class="Docs__api-param-eg"><em>Example:</em> <code>"git@github.com:acme-inc/my-pipeline.git"</code></p></td></tr>
  +  <tr><th><code>steps</code></th><td>An array of the build pipeline steps.<p class="Docs__api-param-eg"><em>Script:</em> <code>{ "type": "script", "name": "Script", "command": "command.sh" }</code></p><p class="Docs__api-param-eg"><em>Wait for all previous steps to finish:</em> <code>{ "type": "waiter" }</code></p><p class="Docs__api-param-eg"><em>Block pipeline (see the <a href="/docs/api/jobs#unblock-a-job">job unblock API</a>):</em> <code>{ "type": "manual" }</code></p></td></tr>
  +  </tbody>
  +</table>
  +
  +Optional properties:
  +
  +<table>
  +<tbody>
  +  <tr><th><code>slug</code></th><td>The URL slug for the pipeline, which must be unique across the organization.<p class="Docs__api-param-eg"><em>Example:</em> <code>"new-pipeline"</code></p><p class="Docs__api-param-eg"><em>Default value: generated from the name.</em></p></td></tr>
  +  <tr><th><code>env</code></th><td>The pipeline environment variables. <p class="Docs__api-param-eg"><em>Example:</em> <code>{"KEY":"value"}</code></p></td></tr>
  +  <tr><th><code>provider_settings</code></th><td>The source provider settings. <p class="Docs__api-param-eg"><em>Example:</em> <code>{"provider_settings": { "publish_commit_status": true, "build_pull_request_forks": true }}</code></p></td>
  +</tbody>
  +</table>
  +
  +Required scope: `write_pipelines`
  +
  +Success response: `201 Created`
  +
  +Error responses:
  +
  +<table>
  +<tbody>
  +  <tr><th><code>422 Unprocessable Entity</code></th><td><code>{ "message": "Validation Failed", "errors": [ ... ] }</code></td></tr>
  +</tbody>
  +</table>
  +
  +## Update a pipeline
  +
  +Updates one or more properities of an existing pipeline:
  +
  +```bash
  +curl -X PATCH "https://api.buildkite.com/v2/organizations/{org.slug}/pipelines/my-pipeline" \
  +  -d '{
  +    "repository": "git@github.com:acme-inc/new-repo.git"
  +  }'
  +```
  +
  +```json
  +{
  +  "id": "14e9501c-69fe-4cda-ae07-daea9ca3afd3",
  +  "url": "https://api.buildkite.com/v2/organizations/acme-inc/pipelines/my-pipeline",
  +  "web_url": "https://buildkite.com/acme-inc/my-pipeline",
  +  "name": "My Pipeline",
  +  "slug": "my-pipeline",
  +  "repository": "git@github.com:acme-inc/new-repo.git",
  +  "provider": {
  +    "id": "github",
  +    "webhook_url": "https://webhook.buildkite.com/deliver/xxx",
  +    "settings": {
  +      "publish_commit_status": true,
  +      "build_pull_requests": true,
  +      "build_pull_request_forks": false,
  +      "build_tags": false,
  +      "publish_commit_status_per_step": false,
  +      "repository": "acme-inc/new-repo",
  +      "trigger_mode": "code"
  +    }
  +  },
  +  "builds_url": "https://api.buildkite.com/v2/organizations/acme-inc/pipelines/my-pipeline/builds",
  +  "created_at": "2015-03-01 06:44:40 UTC",
  +  "steps": [
  +    {
  +      "type": "script",
  +      "name": "Build \:package\:",
  +      "command": "script/release.sh",
  +      "artifact_paths": "pkg/*",
  +      "branch_configuration": null,
  +      "env": { },
  +      "timeout_in_minutes": null,
  +      "agent_query_rules": [ ]
  +    }
  +  ],
  +  "env": {
  +  },
  +  "scheduled_builds_count": 0,
  +  "running_builds_count": 0,
  +  "scheduled_jobs_count": 0,
  +  "running_jobs_count": 0,
  +  "waiting_jobs_count": 0
  +}
  +```
  +
  +Optional properties:
  +
  +<table>
  +<tbody>
  +  <tr><th><code>name</code></th><td>The name of the pipeline.<p class="Docs__api-param-eg"><em>Example:</em> <code>"New Pipeline"</code></p></td></tr>
  +  <tr><th><code>slug</code></th><td>The URL slug for the pipeline, which must be unique across the organization.<p class="Docs__api-param-eg"><em>Example:</em> <code>"new-pipeline"</code></p><p class="Docs__api-param-eg"><em>Default value: generated from the name.</em></p></td></tr>
     <tr><th><code>repository</code></th><td>The repository URL.<p class="Docs__api-param-eg"><em>Example:</em> <code>"git@github.com/org/repo.git"</code></p></td></tr>
     <tr><th><code>steps</code></th><td>An array of the build pipeline steps.<p class="Docs__api-param-eg"><em>Script:</em> <code>{ "type": "script", "name": "Script", "command": "command.sh" }</code></p><p class="Docs__api-param-eg"><em>Wait for all previous steps to finish:</em> <code>{ "type": "waiter" }</code></p><p class="Docs__api-param-eg"><em>Block pipeline (see the <a href="/docs/api/jobs#unblock-a-job">job unblock API</a>):</em> <code>{ "type": "manual" }</code></p></td></tr>
  -  </tbody>
  -</table>
  -
  -Optional properties:
  -
  -<table>
  -<tbody>
  -  <tr><th><code>slug</code></th><td>The URL slug for the pipelinipelines must be unique across the organization.<p class="Docs__api-param-eg"><em>Example:</em> <code>"new-pipeline"</code></p><p class="Docs__api-param-eg"><em>Default value: generated from the name.</em></p></td></tr>
     <tr><th><code>env</code></th><td>The pipeline environment variables. <p class="Docs__api-param-eg"><em>Example:</em> <code>{"KEY":"value"}</code></p></td></tr>
  +  <tr><th><code>provider_settings</code></th><td>The source provider settings. <p class="Docs__api-param-eg"><em>Example:</em> <code>{"provider_settings": { "publish_commit_status": true, "build_pull_request_forks": true }}</code></p></td>
   </tbody>
   </table>
   
   Required scope: `write_pipelines`
   
  -Success response: `201 Created`
  +Success response: `200 OK`
   
   Error responses:
   
  
positive.code:   "web_url": "https://buildkite.com/acme-inc/my-pipeline",
    "name": "My Pipeline",
    "slug": "my-pipeline",
    "repository": "git@github.com/org/pipeline.git",
    "provider": {
      "id": "github",
      "webhook_url": "https://webhook.buildkite.com/deliver/xxx"
    },
    "builds_url": "https://api.buildkite.com/v2/organizations/acme-inc/pipelines/my-pipeline/builds",
    "created_at": "2015-03-01 06:44:40 UTC",
  
negative.code:   "id": "849411f9-9e6d-4739-a0d8-e247088e9b52",
    "url": "https://api.buildkite.com/v2/organizations/acme-inc/pipelines/my-pipeline",
    "web_url": "https://buildkite.com/acme-inc/my-pipeline",
    "name": "My Pipeline",
    "slug": "my-pipeline",
    "repository": "git@github.com:acme-inc/my-pipeline.git",
    "provider": {
      "id": "github",
      "webhook_url": "https://webhook.buildkite.com/deliver/xxx",
      "settings": {
        "publish_commit_status": true,
        "build_pull_requests": true,
        "build_pull_request_forks": false,
        "build_tags": false,
        "publish_commit_status_per_step": false,
        "repository": "acme-inc/my-pipeline",
        "trigger_mode": "code"
      }
    },
    "builds_url": "https://api.buildkite.com/v2/organizations/acme-inc/pipelines/my-pipeline/builds",
    "created_at": "2013-09-03 13:24:38 UTC",
  