Configuring Automatic Topic Creation

Updated on 2025-05-21 GMT+08:00

Function

This API is used to configure automatic topic creation.

Calling Method

For details, see Calling APIs.

URI

POST /v2/{project_id}/instances/{instance_id}/autotopic

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain it, see Obtaining a Project ID.

instance_id

Yes

String

Instance ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

enable_auto_topic

Yes

Boolean

Whether to enable automatic topic creation.

Response Parameters

Status code: 200

The function is enabled or disabled successfully.

None

Example Requests

Enabling automatic topic creation

POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/autotopic

{
  "enable_auto_topic" : true
}

Example Responses

None

Status Codes

Status Code

Description

200

The function is enabled or disabled successfully.

Error Codes

See Error Codes.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback