All Products
Search
Document Center

Platform For AI:CreateConfig

Last Updated:Jun 11, 2026

Membuat satu parameter dinamis di layanan tertentu.

Deskripsi operasi

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.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

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

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

No

Wilayah tempat layanan berada.

cn-hangzhou

ConfigType

string

No

Tipe konfigurasi. Saat ini, hanya layanan yang didukung.

service

Name

string

No

Nama layanan.

my_llm_service

ConfigKey

string

No

Nama parameter dinamis. Dapat berisi huruf, angka, titik (.), garis bawah (_), tanda hubung (-), dan garis miring (/). Panjang maksimum adalah 100 karakter.

rate_limit

Parameter permintaan

Parameter

Type

Required

Description

Example

body

object

No

Badan permintaan.

Value

string

No

The dynamic parameter value.

{"model": "gpt-4"}

Elemen respons

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

Contoh

Respons sukses

JSONformat

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

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.