---
title: "Update the audit source"
method: POST
path: "/inlong/manager/api/audit/updateSource"
tags: ["Audit-API"]
---

# Update the audit source

`POST /inlong/manager/api/audit/updateSource`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- AuditSourceRequest
  - `enableAuth` integer: Enable auth or not, 0: disable, 1: enable
  - `name` string: Audit source name
  - `offlineUrl` string: Offline the url if not null
  - `token` string: Audit source token, needed if enableAuth is 1
  - `type` string, required: Audit source type, including: MYSQL, CLICKHOUSE, ELASTICSEARCH
  - `url` string, required: Audit source URL, for MYSQL or CLICKHOUSE, is jdbcUrl, and for ELASTICSEARCH is the access URL with hostname:port
  - `username` string: Audit source username, needed if enableAuth is 1
  - `version` integer: Version number

## Response `200`

OK

- ResponseInt
  - `data` integer
  - `errMsg` string
  - `success` boolean

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api.md) - [All operations](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/revisions/41c687f48683?raw)
