---
title: "Update the audit logging storage integration"
method: PATCH
path: "/v2/organizations/settings/storageIntegration/auditLogging"
tags: ["Organizations"]
---

# Update the audit logging storage integration

`PATCH /v2/organizations/settings/storageIntegration/auditLogging`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/organizations/settings/storageIntegration/auditLogging`
- Auth: HTTP bearer

Modify the cloud storage location used for audit log exports for an organization. To update the storage provider or its credentials, you must delete and recreate the storage integration. 
### 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.
- Create, update, and delete requests may return before the storage integration is actually provisioned or removed. Call [GET /v2/organizations/settings/storageIntegration/auditLogging](/reference/get-audit-logging-storage-integration) afterward to confirm the change has taken effect.

## Request body

- object
  - `allowedLocation` string, required: New cloud storage URI for the audit log exports.
  - `updateScheduledExports` boolean, required: Whether to update export schedules to use the new storage location. If false, scheduled exports are paused.

## Response `202`

The storage integration settings after accepting the update request.

- OrganizationsUpdateAuditLoggingStorageIntegrationResponse202: The storage integration settings after accepting the update request.
  - `provider` 'aws' | 'azure' | 'gcp', required: Cloud storage provider for the audit log exports.
  - `allowedLocation` string, required: Cloud storage URI for the audit log exports.
  - `storageAwsRoleArn` string: AWS IAM role ARN Sigma assumes to write to the destination bucket.
  - `tenantId` string: Azure AD tenant ID that owns the destination storage account.

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
