actions

Set artifact and log retention settings for an organization

Sets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for an organization.

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 admin:org scope or the "Actions policies" fine-grained permission to use this endpoint.

put/orgs/{org}/actions/permissions/artifact-and-log-retention

Request

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

Path parameters

orgstring required

The organization name. 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

No content

Changes

No recorded changes to this operation across all 83 revisions of this API.