Delete API

Last updated: 2019-07-24 16:07:56

PDF

API Description

This API (DeleteApi) is used to delete an API.

Input Parameters

The following request parameter list only provides API request parameters. Other parameters can be found in Common Request Parameters.

Parameter Name Required Type Description
serviceId Yes String Unique ID of the service of the API.
apiId Yes String Unique ID of the API.

Output Parameters

Parameter Name Type Description
code Int Common error code. 0: Successful; other values: Failed. For more information, see Common Error Codes on the Error Codes page.
codeDesc String Error code at business side. For a successful operation, "Success" is returned. In case of an error, a message describing the reason for the error is returned.
message String Module error message description depending on API.

Example

The request example is as below:

https://apigateway.api.qcloud.com/v2/index.php?
&<Common request parameters>
&Action=DeleteApi
&serviceId=service-XX
&apiId=api-xx

The returned results are as below:

{
    "code":"0",
    "message":"",
    "codeDesc":"Success",      
}