All Products
Search
Document Center

Platform For AI:CreateConfig

Last Updated:May 26, 2026

Creates a single dynamic parameter in a specified service.

Operation description

Description

  • This API creates a new dynamic parameter by sending a POST request to a specified path.

  • The dynamic parameter name (ConfigKey) can contain letters, digits, periods (.), underscores (_), hyphens (-), and forward slashes (/). The maximum length is 100 characters.

  • The request body must include the dynamic parameter value (Value).

  • If successful, the API returns the new dynamic parameter's name (Key), value (Value), creation time, and update time.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

No

The region where the service is located.

cn-hangzhou

ConfigType

string

No

The configuration type. Currently, only service is supported.

service

Name

string

No

The service name.

my_llm_service

ConfigKey

string

No

The dynamic parameter name. It can contain letters, digits, periods (.), underscores (_), hyphens (-), and forward slashes (/). The maximum length is 100 characters.

rate_limit

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

Value

string

No

The dynamic parameter value.

{"model": "gpt-4"}

Response elements

Element

Type

Description

Example

object

The response body.

Key

string

The dynamic parameter name.

model-config

Value

string

The dynamic parameter value.

{"model": "gpt-4"}

CreatedAt

string

The creation time.

2024-01-01T00:00:00Z

UpdatedAt

string

The update time.

2024-01-01T00:00:00Z

Examples

Success response

JSON format

{
  "Key": "model-config",
  "Value": "{\"model\": \"gpt-4\"}",
  "CreatedAt": "2024-01-01T00:00:00Z",
  "UpdatedAt": "2024-01-01T00:00:00Z"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.