enterprise-admin

Set artifact and log retention settings for an enterprise

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

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.

put/enterprises/{enterprise}/actions/permissions/artifact-and-log-retention

Request

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

Path parameters

enterprisestring required

The slug version of the enterprise name.

Request body

daysinteger required

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

Response

Successfully updated the retention settings for checks, workflow runs, commit statuses, artifacts, and logs

Changes

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