跳转到主要内容
PATCH
/
v1
/
public
/
accounts
/
{account_id}
/
credentials
/
{credential_id}
更新主密码
curl --request PATCH \
  --url https://api.hybridbox.io/v1/public/accounts/{account_id}/credentials/{credential_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "created_at": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "scope_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Public API bearer credential sent as Authorization: Bearer <token>. Use either an OAuth access token or a Hybridbox Service account token.

路径参数

account_id
string<uuid>
必填
credential_id
string<uuid>
必填

请求体

application/json

重命名主密码的请求。

name
string
必填

主密码显示名称

Required string length: 1 - 100

响应

created_at
string
必填

主密码创建时间戳

id
string<uuid>
必填

主密码 UUID

name
string
必填

主密码显示名称

scope_id
string<uuid>
必填

主密码作用域的资源 UUID

scope_type
enum<string>
必填

主密码适用的资源作用域类型

可用选项:
account,
workspace,
domain
updated_at
string
必填

主密码最后更新时间戳