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"에 대한 매개 변수

머리글
속성, 형식, 설명
accept string

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

경로 매개 변수
속성, 형식, 설명
org string Required

The organization name. The name is not case sensitive.

본문 매개 변수
속성, 형식, 설명
subject_digests array of strings Required

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"에 대한 매개 변수

머리글
속성, 형식, 설명
accept string

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

경로 매개 변수
속성, 형식, 설명
org string Required

The organization name. The name is not case sensitive.

subject_digest string Required

Subject Digest

"Delete attestations by subject digest"에 대한 HTTP 응답 상태 코드

상태 코드설명
200

OK

204

No Content

404

Resource not found

"Delete attestations by subject digest"에 대한 코드 샘플

GHE.com에서 GitHub에 액세스하는 경우 api.github.comapi.SUBDOMAIN.ghe.com의 엔터프라이즈 전용 하위 도메인으로 바꾸세요.

요청 예제

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"에 대한 매개 변수

머리글
속성, 형식, 설명
accept string

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

경로 매개 변수
속성, 형식, 설명
org string Required

The organization name. The name is not case sensitive.

attestation_id integer Required

Attestation ID

"Delete attestations by ID"에 대한 HTTP 응답 상태 코드

상태 코드설명
200

OK

204

No Content

403

Forbidden

404

Resource not found

"Delete attestations by ID"에 대한 코드 샘플

GHE.com에서 GitHub에 액세스하는 경우 api.github.comapi.SUBDOMAIN.ghe.com의 엔터프라이즈 전용 하위 도메인으로 바꾸세요.

요청 예제

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