Deleting a SQL template
Function
This API is used to delete SQL templates in batches.
URI
- URI format
- Parameter description
Table 1 URI parameter Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
sql_ids |
Yes |
Array<String> |
IDs of SQL templates you want to delete. |
Response
Parameter |
Type |
Description |
---|---|---|
is_success |
Boolean |
Whether the request is successful. |
message |
String |
System prompt. If execution succeeds, the message may be left blank. If the execution fails, the value will be the cause of the failure. |
Example Request
Delete the SQL template whose ID is 27b79c50-4ac6-4050-8b81-8f0dbd7be184.
{ "sql_ids": ["27b79c50-4ac6-4050-8b81-8f0dbd7be184"] }
Example Response
{ "is_success": true, "message": "" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.