Enable or disable audit logging for an organization
Enable or disable audit logging for the organization.
Enabling provisions a warehouse user and an audit log connection. Disabling deletes the organization's audit log storage integrations
along with any scheduled exports attached to them, archives the connection,
and deletes the warehouse user.
### Usage notes
- To perform this operation, you must use API credentials owned by a user assigned the Admin account type.
- To read or update this setting for a tenant organization, use [impersonation](/docs/impersonate-users) to obtain a token for that tenant, then call this endpoint with that token.
Authentication
AuthorizationBearer
OAuth authentication of the form <token>.
Request
The request body.
enabled
Whether audit logging should be enabled for the organization.
Response
The response body.
status
Current state of audit logging for the organization. enable_in_progress and disable_in_progress mean a background task is still running.

