Skip to main content
Credential

更新 Credential

更新密钥信息

PATCH
/api/v1/agentstudio/credentials/{credential_id}
cURL
curl --request PATCH \
  --url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/credentials/{credential_id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "key": "<string>",
  "value": "<string>"
}
'
{
  "id": "cred_01JXH5K2",
  "vault_id": "vault_01JXH5K2",
  "name": "OpenAI Key",
  "key": "OPENAI_API_KEY",
  "created_at": "2026-07-20T10:00:00Z",
  "updated_at": "2026-07-20T10:00:00Z",
  "workspace_id": "ws_xxx",
  "request_id": "req_xxx"
}

Authorizations

string
header
required

DashScope API Key

Path Parameters

string
required

Body

application/json
string
string
string

Response

200-application/json
string

密钥 ID

string
string
string

变量名

string
string
string
string
RAG API
Connector API
Memory API
框架集成
  • 框架