الانتقال إلى المحتوى الرئيسي
POST
/
v1
/
public
/
accounts
/
{account_id}
/
credentials
إنشاء كلمة مرور رئيسية
curl --request POST \
  --url https://api.hybridbox.io/v1/public/accounts/{account_id}/credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "domain": "<string>",
  "generate": false,
  "value": "<string>",
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "created_at": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "scope_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_at": "<string>",
  "generated_secret": "<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>
مطلوب

الجسم

application/json

طلب لإنشاء كلمة مرور رئيسية ضمن نطاق مسار الحساب.

name
string
مطلوب

اسم عرض كلمة المرور الرئيسية

Required string length: 1 - 100
domain
string | null

نطاق كلمة المرور الرئيسية حسب UUID النطاق أو اسم النطاق

generate
boolean
افتراضي:false

إنشاء سر كلمة مرور رئيسية بدلًا من توفيره

value
string | null

قيمة سر كلمة المرور الرئيسية عند عدم توليدها

Required string length: 4 - 256
workspace_id
string<uuid> | null

نطاق UUID لمساحة العمل لكلمة المرور الرئيسية

الاستجابة

created_at
string
مطلوب

طابع وقت إنشاء كلمة المرور الرئيسية

id
string<uuid>
مطلوب

UUID كلمة المرور الرئيسية

name
string
مطلوب

اسم عرض كلمة المرور الرئيسية

scope_id
string<uuid>
مطلوب

UUID المورد لنطاق كلمة المرور الرئيسية

scope_type
enum<string>
مطلوب

نوع نطاق المورد الذي تنطبق عليه كلمة المرور الرئيسية

الخيارات المتاحة:
account,
workspace,
domain
updated_at
string
مطلوب

طابع وقت آخر تحديث لكلمة المرور الرئيسية

generated_secret
string | null

سر كلمة مرور رئيسية مولد لمرة واحدة عند الطلب