Skip to content

Commit

Permalink
First pass at explaining provider.webhook_url behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
l-suzuki committed Aug 9, 2023
1 parent 846e384 commit 9ff5533
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pages/apis/rest_api/builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ Optional [query string parameters](/docs/api#query-string-parameters):

Required scope: `read_builds`

Note: `pipeline.provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `200 OK`

## Get a build
Expand Down Expand Up @@ -299,6 +301,8 @@ Optional [query string parameters](/docs/api#query-string-parameters):

Required scope: `read_builds`

Note: `pipeline.provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `200 OK`

## Create a build
Expand Down Expand Up @@ -452,6 +456,8 @@ Optional [request body properties](/docs/api#request-body-properties):

Required scope: `write_builds`

Note: `pipeline.provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `201 Created`

Error responses:
Expand Down Expand Up @@ -575,6 +581,8 @@ curl -X PUT "https://api.buildkite.com/v2/organizations/{org.slug}/pipelines/{pi

Required scope: `write_builds`

Note: `pipeline.provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `200 OK`

Error responses:
Expand Down Expand Up @@ -697,6 +705,8 @@ curl -X PUT "https://api.buildkite.com/v2/organizations/{org.slug}/pipelines/{pi

Required scope: `write_builds`

Note: `pipeline.provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `200 OK`

## Timestamp attributes
Expand Down
5 changes: 4 additions & 1 deletion pages/apis/rest_api/pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ curl "https://api.buildkite.com/v2/organizations/{org.slug}/pipelines"

Required scope: `read_pipelines`

Note: `provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `200 OK`

## Get a pipeline
Expand Down Expand Up @@ -150,8 +152,9 @@ curl "https://api.buildkite.com/v2/organizations/{org.slug}/pipelines/{slug}"

Required scope: `read_pipelines`

Success response: `200 OK`
Note: `provider.webhook_url` value is only returned if the user has edit permissions for the pipeline.

Success response: `200 OK`

## Create a YAML pipeline

Expand Down

0 comments on commit 9ff5533

Please sign in to comment.