This API is used to enable or disable automatic topic creation.
POST /v2/{project_id}/instances/{instance_id}/autotopic
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. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
enable_auto_topic |
Yes |
Boolean |
Whether to enable automatic topic creation. |
None
Enabling automatic topic creation.
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/autotopic
{
"enable_auto_topic" : true
}
None
Status Code |
Description |
|---|---|
200 |
The function is enabled or disabled successfully. |
See Error Codes.