TODOCS
TODOCS
Delete attestations in bulk
Delete artifact attestations in bulk by either subject digests or unique ID.
Jetons d’accès affinés pour « Delete attestations in bulk »
Ce point de terminaison fonctionne avec les types de jetons précis suivants:
- Jetons d’accès utilisateur d’application GitHub
- Jetons d’accès d’installation d’application GitHub
- Jetons d’accès personnel affiné
Le jeton précis doit avoir l’ensemble d’autorisations suivant:
- "Attestations" repository permissions (write)
Paramètres pour « Delete attestations in bulk »
Nom, Type, Description |
---|
accept string Setting to |
Nom, Type, Description |
---|
org string ObligatoireThe organization name. The name is not case sensitive. |
Nom, Type, Description |
---|
subject_digests array of strings ObligatoireList of subject digests associated with the artifact attestations to delete. |
Codes d’état de la réponse HTTP pour « Delete attestations in bulk »
Code d’état | Description |
---|---|
200 | OK |
404 | Resource not found |
Delete attestations by subject digest
Delete an artifact attestation by subject digest.
Jetons d’accès affinés pour « Delete attestations by subject digest »
Ce point de terminaison fonctionne avec les types de jetons précis suivants:
- Jetons d’accès utilisateur d’application GitHub
- Jetons d’accès d’installation d’application GitHub
- Jetons d’accès personnel affiné
Le jeton précis doit avoir l’ensemble d’autorisations suivant:
- "Attestations" repository permissions (write)
Paramètres pour « Delete attestations by subject digest »
Nom, Type, Description |
---|
accept string Setting to |
Nom, Type, Description |
---|
org string ObligatoireThe organization name. The name is not case sensitive. |
subject_digest string ObligatoireSubject Digest |
Codes d’état de la réponse HTTP pour « Delete attestations by subject digest »
Code d’état | Description |
---|---|
200 | OK |
204 | No Content |
404 | Resource not found |
Exemples de code pour « Delete attestations by subject digest »
Exemples de requête
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.
Jetons d’accès affinés pour « Delete attestations by ID »
Ce point de terminaison fonctionne avec les types de jetons précis suivants:
- Jetons d’accès utilisateur d’application GitHub
- Jetons d’accès d’installation d’application GitHub
- Jetons d’accès personnel affiné
Le jeton précis doit avoir l’ensemble d’autorisations suivant:
- "Attestations" repository permissions (write)
Paramètres pour « Delete attestations by ID »
Nom, Type, Description |
---|
accept string Setting to |
Nom, Type, Description |
---|
org string ObligatoireThe organization name. The name is not case sensitive. |
attestation_id integer ObligatoireAttestation ID |
Codes d’état de la réponse HTTP pour « Delete attestations by ID »
Code d’état | Description |
---|---|
200 | OK |
204 | No Content |
403 | Forbidden |
404 | Resource not found |
Exemples de code pour « Delete attestations by ID »
Exemples de requête
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