Credential
归档 Credential
归档指定密钥库中的密钥
cURL
Copy
curl --request POST \
--url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/vaults/{vault_id}/credentials/{credential_id}/archive' \
--header 'Authorization: Bearer <YOUR_API_KEY>'Copy
{
"id": "cred_xxx",
"type": "credential",
"name": "github-token",
"credential_type": "oauth2",
"metadata": {},
"archived_at": "2026-07-25T10:00:00Z",
"created_at": "2026-07-20T10:00:00Z",
"updated_at": "2026-07-25T10:00:00Z",
"request_id": "req_xxx"
}