---
title: "POST /v2LoggingLevel"
method: POST
path: "/v2LoggingLevel"
---

# POST /v2LoggingLevel

`POST /v2LoggingLevel`

Sets the logging level.

Requires permission to access the [SetV2LoggingLevel](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Request body

- object
  - `logTarget` object, required — A log target.
    - `targetType` 'DEFAULT' | 'THING_GROUP' | 'CLIENT_ID' | 'SOURCE_IP' | 'PRINCIPAL_ID' — The target type.
    - `targetName` string — The target name.
  - `logLevel` 'DEBUG' | 'INFO' | 'ERROR' | 'WARN' | 'DISABLED', required — The log level.

## Response `200`

Success

## Other responses

- `480` — InternalException
- `481` — NotConfiguredException
- `482` — InvalidRequestException
- `483` — ServiceUnavailableException
- `484` — LimitExceededException

---

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