GET
/orgs/{org}/actions/permissions/artifact-and-log-retentionGet artifact and log retention settings for an organization
Gets 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.
orgstringrequired
The organization name. The name is not case sensitive.
200Response
daysintegerrequired
The number of days checks, workflow runs, commit statuses, artifacts, and logs are retained
maximum_allowed_daysintegerrequired
The maximum number of days that can be configured
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned: Forbidden. A 404 is returned: Resource not found.