Updates a dynamic parameter for a specific cluster and service.
Operation description
Request
Use this API to update a dynamic parameter by providing its ClusterId, ConfigType, Name, and ConfigKey. The request body must contain the new parameter value in the Value field. Ensure you provide the correct path parameters to avoid errors.
Try it now
Test
RAM authorization
Request syntax
PUT /api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
The cluster or region ID. This parameter is required. For example, |
cn-hangzhou |
| ConfigType |
string |
No |
The configuration type. This parameter is required. Currently, only |
service |
| Name |
string |
No |
The service name. This parameter is required. |
my-llm-service |
| ConfigKey |
string |
No |
The dynamic parameter name. This parameter is required. |
rate_limit |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. This parameter is required. |
|
| Value |
string |
No |
The new dynamic parameter value. This parameter is required. |
200 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Key |
string |
The dynamic parameter name. |
llm_gateway.route_policy |
| Value |
string |
The dynamic parameter value. |
{"model": "gpt-4-turbo"} |
| CreatedAt |
string |
The time the configuration was created. |
2024-01-15T10:30:00Z |
| UpdatedAt |
string |
The time the configuration was last updated. |
2024-01-15T11:00:00Z |
Examples
Success response
JSON format
{
"Key": "llm_gateway.route_policy",
"Value": "{\"model\": \"gpt-4-turbo\"}",
"CreatedAt": "2024-01-15T10:30:00Z",
"UpdatedAt": "2024-01-15T11:00:00Z"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.