Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PKG-7607] API docs for registry tokens delete #2976

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
children:
- name: "Registries"
path: "apis/rest-api/packages/registries"
- name: "Registry Tokens"
- name: "Registry tokens"
path: "apis/rest-api/packages/registry-tokens"
- name: "Pipelines "
# Keep space at end to prevent "Pipelines" in global nav bar being
Expand Down
12 changes: 12 additions & 0 deletions pages/apis/rest_api/packages/registry_tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,15 @@ Required [request body properties](/docs/api#request-body-properties):
Required scope: `write_registries`

Success response: `200 OK`


## Delete a registry token

```bash
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE "https://api.buildkite.com/v2/packages/organizations/#{org.slug}/registries/#{registry.slug}/tokens/#{id}"
```

Required scope: `write_registries`

Success response: `200 OK`
Loading