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 |
名前, 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 |
名前, 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" のコード サンプル
要求の例
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 |
名前, 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" のコード サンプル
要求の例
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