cURL
Authorizations
string
header
required
DashScope API Key
Path Parameters
string
required
Credential ID,格式 cred_xxx
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Archive a credential from the specified credential vault
curl --request POST \
--url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/credentials/{credential_id}/archive' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"id": "cred_xxx",
"type": "credential",
"vault_id": "vlt_xxx",
"display_name": "第三方 API 密钥",
"auth": {
"type": "environment_variable",
"secret_name": "API_KEY",
"networking": {
"type": "unrestricted"
}
},
"metadata": {},
"archived_at": "2026-07-15T06:00:00Z",
"created_at": "2026-07-10T08:00:00Z",
"updated_at": "2026-07-15T06:00:00Z",
"request_id": "req_xxx"
}DashScope API Key
Credential ID,格式 cred_xxx
Credential ID,格式 cred_xxx
固定为 credential
所属 Vault ID
Credential 可读名称
业务自定义键值对
归档时间,未归档时为 null
创建时间,ISO 8601
最近更新时间,ISO 8601
请求唯一标识
curl --request POST \
--url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/credentials/{credential_id}/archive' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"id": "cred_xxx",
"type": "credential",
"vault_id": "vlt_xxx",
"display_name": "第三方 API 密钥",
"auth": {
"type": "environment_variable",
"secret_name": "API_KEY",
"networking": {
"type": "unrestricted"
}
},
"metadata": {},
"archived_at": "2026-07-15T06:00:00Z",
"created_at": "2026-07-10T08:00:00Z",
"updated_at": "2026-07-15T06:00:00Z",
"request_id": "req_xxx"
}