|
9264 | 9264 | }, |
9265 | 9265 | "descriptionHTML": "<p>A cursor, as given in the <a href=\"https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header\">Link header</a>. If specified, the query only searches for events before this cursor.</p>" |
9266 | 9266 | }, |
| 9267 | + { |
| 9268 | + "name": "order", |
| 9269 | + "description": "The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.\n\nThe default is `desc`.", |
| 9270 | + "in": "query", |
| 9271 | + "required": false, |
| 9272 | + "schema": { |
| 9273 | + "type": "string", |
| 9274 | + "enum": [ |
| 9275 | + "desc", |
| 9276 | + "asc" |
| 9277 | + ] |
| 9278 | + }, |
| 9279 | + "descriptionHTML": "<p>The order of audit log events. To list newest events first, specify <code>desc</code>. To list oldest events first, specify <code>asc</code>.</p>\n<p>The default is <code>desc</code>.</p>" |
| 9280 | + }, |
9267 | 9281 | { |
9268 | 9282 | "name": "per_page", |
9269 | 9283 | "description": "Results per page (max 100)", |
|
9288 | 9302 | } |
9289 | 9303 | ], |
9290 | 9304 | "summary": "Get the audit log for an enterprise", |
9291 | | - "description": "**Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub.\n\nGets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the `admin:enterprise` scope.", |
| 9305 | + "description": "**Note:** The audit log REST API is currently in beta and is subject to change.\n\nGets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the `admin:enterprise` scope.", |
9292 | 9306 | "operationId": "audit-log/get-audit-log", |
9293 | 9307 | "tags": [ |
9294 | 9308 | "audit-log" |
|
9311 | 9325 | "subcategoryLabel": "Audit log", |
9312 | 9326 | "notes": [], |
9313 | 9327 | "bodyParameters": [], |
9314 | | - "descriptionHTML": "<p><strong>Note:</strong> The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub.</p>\n<p>Gets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the <code>admin:enterprise</code> scope.</p>", |
| 9328 | + "descriptionHTML": "<p><strong>Note:</strong> The audit log REST API is currently in beta and is subject to change.</p>\n<p>Gets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the <code>admin:enterprise</code> scope.</p>", |
9315 | 9329 | "responses": [ |
9316 | 9330 | { |
9317 | 9331 | "httpStatusCode": "200", |
|
17709 | 17723 | }, |
17710 | 17724 | "descriptionHTML": "<p>A cursor, as given in the <a href=\"https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header\">Link header</a>. If specified, the query only searches for events before this cursor.</p>" |
17711 | 17725 | }, |
| 17726 | + { |
| 17727 | + "name": "order", |
| 17728 | + "description": "The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.\n\nThe default is `desc`.", |
| 17729 | + "in": "query", |
| 17730 | + "required": false, |
| 17731 | + "schema": { |
| 17732 | + "type": "string", |
| 17733 | + "enum": [ |
| 17734 | + "desc", |
| 17735 | + "asc" |
| 17736 | + ] |
| 17737 | + }, |
| 17738 | + "descriptionHTML": "<p>The order of audit log events. To list newest events first, specify <code>desc</code>. To list oldest events first, specify <code>asc</code>.</p>\n<p>The default is <code>desc</code>.</p>" |
| 17739 | + }, |
17712 | 17740 | { |
17713 | 17741 | "name": "per_page", |
17714 | 17742 | "description": "Results per page (max 100)", |
|
17733 | 17761 | } |
17734 | 17762 | ], |
17735 | 17763 | "summary": "Get the audit log for an organization", |
17736 | | - "description": "**Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub.\n\nGets the audit log for an organization. For more information, see \"[Reviewing the audit log for your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization).\"\n\nTo use this endpoint, you must be an organization owner, and you must use an access token with the `admin:org` scope. GitHub Apps must have the `organization_administration` read permission to use this endpoint.", |
| 17764 | + "description": "**Note:** The audit log REST API is currently in beta and is subject to change.\n\nGets the audit log for an organization. For more information, see \"[Reviewing the audit log for your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization).\"\n\nTo use this endpoint, you must be an organization owner, and you must use an access token with the `admin:org` scope. GitHub Apps must have the `organization_administration` read permission to use this endpoint.", |
17737 | 17765 | "operationId": "orgs/get-audit-log", |
17738 | 17766 | "tags": [ |
17739 | 17767 | "orgs" |
|
17754 | 17782 | "categoryLabel": "Orgs", |
17755 | 17783 | "notes": [], |
17756 | 17784 | "bodyParameters": [], |
17757 | | - "descriptionHTML": "<p><strong>Note:</strong> The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub.</p>\n<p>Gets the audit log for an organization. For more information, see \"<a href=\"https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization\">Reviewing the audit log for your organization</a>.\"</p>\n<p>To use this endpoint, you must be an organization owner, and you must use an access token with the <code>admin:org</code> scope. GitHub Apps must have the <code>organization_administration</code> read permission to use this endpoint.</p>", |
| 17785 | + "descriptionHTML": "<p><strong>Note:</strong> The audit log REST API is currently in beta and is subject to change.</p>\n<p>Gets the audit log for an organization. For more information, see \"<a href=\"https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization\">Reviewing the audit log for your organization</a>.\"</p>\n<p>To use this endpoint, you must be an organization owner, and you must use an access token with the <code>admin:org</code> scope. GitHub Apps must have the <code>organization_administration</code> read permission to use this endpoint.</p>", |
17758 | 17786 | "responses": [ |
17759 | 17787 | { |
17760 | 17788 | "httpStatusCode": "200", |
|
0 commit comments