Skip to main content

UpdateModel

更新时间:2025-07-06 18:32:25
Query and update existing model information based on the model ID.
PUT
https://api.alayanew.com/api/model/v1/{modelId}
Authorizations
AuthorizationsStringHeaderRequired

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

Query Parameters
modelMetaObjectRequired

Model metadata information.

modelMeta.nameString Required

Model name.

modelMeta. descriptionString Required

Model description.

Response
状态码:application/json
codeInt

code is a common return value format, representing the execution result of the query operation.

0 is the success indicator, meaning the operation completed successfully.
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"
        }
        } '
{
    "code": 0
}