Skip to main content
REST API はバージョン管理になりました。 詳細については、「API のバージョン管理について」を参照してください。

TODOCS

TODOCS

Delete attestations in bulk

Delete artifact attestations in bulk by either subject digests or unique ID.

"Delete attestations in bulk" のきめ細かいアクセス トークン

このエンドポイントは、次の粒度の細かいトークンの種類で動作します:

粒度の細かいトークンには次のアクセス許可セットが設定されている必要があります:

  • "Attestations" repository permissions (write)

"Delete attestations in bulk" のパラメーター

ヘッダー
名前, Type, 説明
accept string

Setting to application/vnd.github+json is recommended.

パス パラメーター
名前, Type, 説明
org string 必須

The organization name. The name is not case sensitive.

本文のパラメーター
名前, Type, 説明
subject_digests array of strings 必須

List of subject digests associated with the artifact attestations to delete.

"Delete attestations in bulk" の HTTP 応答状態コード

状態コード説明
200

OK

404

Resource not found

Delete attestations by subject digest

Delete an artifact attestation by subject digest.

"Delete attestations by subject digest" のきめ細かいアクセス トークン

このエンドポイントは、次の粒度の細かいトークンの種類で動作します:

粒度の細かいトークンには次のアクセス許可セットが設定されている必要があります:

  • "Attestations" repository permissions (write)

"Delete attestations by subject digest" のパラメーター

ヘッダー
名前, Type, 説明
accept string

Setting to application/vnd.github+json is recommended.

パス パラメーター
名前, Type, 説明
org string 必須

The organization name. The name is not case sensitive.

subject_digest string 必須

Subject Digest

"Delete attestations by subject digest" の HTTP 応答状態コード

状態コード説明
200

OK

204

No Content

404

Resource not found

"Delete attestations by subject digest" のコード サンプル

要求の例

delete/orgs/{org}/attestations/digest/{subject_digest}
curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/attestations/digest/SUBJECT_DIGEST

Response

Status: 200

Delete attestations by ID

Delete an artifact attestation by unique ID that is associated with a repository owned by an org.

"Delete attestations by ID" のきめ細かいアクセス トークン

このエンドポイントは、次の粒度の細かいトークンの種類で動作します:

粒度の細かいトークンには次のアクセス許可セットが設定されている必要があります:

  • "Attestations" repository permissions (write)

"Delete attestations by ID" のパラメーター

ヘッダー
名前, Type, 説明
accept string

Setting to application/vnd.github+json is recommended.

パス パラメーター
名前, Type, 説明
org string 必須

The organization name. The name is not case sensitive.

attestation_id integer 必須

Attestation ID

"Delete attestations by ID" の HTTP 応答状態コード

状態コード説明
200

OK

204

No Content

403

Forbidden

404

Resource not found

"Delete attestations by ID" のコード サンプル

要求の例

delete/orgs/{org}/attestations/{attestation_id}
curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/attestations/ATTESTATION_ID

Response

Status: 200