UpdateModel
Query and update existing model information based on the model ID.
PUT
https://api.alayanew.com/api/model/v1/{modelId}
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Query Parameters
modelMeta:ObjectRequired
Model metadata information.
modelMeta.name:String Required
Model name.
modelMeta. description:String Required
Model description.
Response
状态码:application/json
200
code:Int
code is a common return value format, representing the execution result of the query operation.
0
-1
0 is the success indicator, meaning the operation completed successfully.
cURL
Python
JavaScript
Go
Java
curl --location --request PUT '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'
--header 'Content-Type: application/json'
--data '
{
"modelMeta": {
"name": "update",
"description": "update"
}
} '
200
400
401
403
404
500
{
"code": 0
}