Updates a model service. This operation applies only to Hologres AI.
Try it now
Test
RAM authorization
Request syntax
PATCH /api/v1/instances/{instanceId}/updateModelService HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
hgprecn-cn-xxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| modelServiceName |
string |
Yes |
A custom name for the model service. |
model-qwen |
| modelType |
string |
No |
The model name. |
Qwen/Qwen2.5-VL-32B-Instruct |
| cpu |
integer |
No |
The CPU specifications. |
32 |
| memory |
integer |
No |
The memory specifications. |
60 |
| gpu |
integer |
No |
The GPU specifications. |
1 |
| serviceCount |
integer |
No |
The number of service replicas. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
819A7F0F-2951-540F-BD94-6A41ECF0281F |
| data |
boolean |
|
true |
Examples
Success response
JSON format
{
"requestId": "819A7F0F-2951-540F-BD94-6A41ECF0281F",
"data": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.