跳到主要内容

删除模型

依据模型ID删除现有模型。
DELETE
https://api.alayanew.com/api/model/v1/{modelId}
Authorizations
AuthorizationsStringHeaderRequired

用户可通过已获取Serverless API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。

Path Parameters
modelIdStringRequired

模型ID。

Response
状态码:application/json
codeInt

code是一种常见的返回值形式,表示查询操作的执行结果。

0是成功标识,表示操作成功完成。
curl --location --request DELETE 'https://api.alayanew.com/api/model/v1/c486cdee-c316-4fc1-9f75-0d1741940f27' 
     --header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK' 
     --header 'Content-Type: application/json'
{
    "code": 0
}