actions

Set artifact and log retention settings for a repository

Sets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for a repository.

Checks include check suites, check runs, and check annotations. These settings also apply to checks and commit statuses created by third-party integrations, and are not limited to data created by GitHub Actions.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

put/repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention
  • Auth: none declared

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

daysinteger required

The number of days to retain checks, workflow runs, commit statuses, artifacts, and logs

Response

Empty response for successful settings update

Changes

No operation changes recorded.