---
title: "PUT /workspaces/{workspaceId}/logging"
method: PUT
path: "/workspaces/{workspaceId}/logging"
---

# PUT /workspaces/{workspaceId}/logging

`PUT /workspaces/{workspaceId}/logging`

Update logging configuration.

## Path parameters

- `workspaceId` string, required — A workspace ID.

## Request body

- object
  - `clientToken` string — An identifier used to ensure the idempotency of a write request.
  - `logGroupArn` string, required — The ARN of the CW log group to which the vended log data will be published.

## Response `202`

Success

- UpdateLoggingConfigurationResponse — Represents the output of an UpdateLoggingConfiguration operation.
  - `status` object, required — The status of the logging configuration.
    - `statusCode` 'CREATING' | 'ACTIVE' | 'UPDATING' | 'DELETING' | 'CREATION_FAILED' | 'UPDATE_FAILED', required — Status code of the logging configuration.
    - `statusReason` string — The reason for failure if any.

## Other responses

- `480` — ConflictException
- `481` — ValidationException
- `482` — ResourceNotFoundException
- `483` — AccessDeniedException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/amp.md) · [All operations](https://skmtc.net/aws/apis/amp/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/amp/versions/c9d704487d08/schema)
