---
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 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

## Other responses

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

---

[API](https://skmtc.net/apache/apis/untitled-api-2.md) · [All operations](https://skmtc.net/apache/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apache/untitled-api-2/versions/41c687f48683/schema)
