ユーザー作成
- Print
 - PDF
 
ユーザー作成
- Print
 - PDF
 
Article summary
Did you find this summary helpful?    
Thank you for your feedback!
Post
/api/users
新規ユーザーを作成して招待メールを送信します。
Security
API Key: ApiKeyAuth
Header parameter nameAuthorization
認証キーとなるAPI KEYをAuthorization: Token {{API KEY}}の形式でヘッダーにセットします。
 API KEYがabc123の場合は、Authorization: Token abc123とします。
 API KEYの作成方法は、trocco APIについてを参照ください。
Body parameters
object 
email
string Required
Eメールアドレス
Exampletrocco@example.com
password
string | null 
初期パスワード。password_auto_generated が false の場合に必須です。
 password_auto_generated が true の場合は送信しないでください。
ExampleFoobarbaz0123
password_auto_generated
boolean 
初期パスワードを自動生成する。
 true の場合、password は不要です。
 false の場合は password を必ず指定してください。
Defaultfalse
Exampletrue
role
string Required
ユーザー権限
Valid values[ "admin", "member" ]
Exampleadmin
can_use_audit_log
boolean 
監査ログ機能の利用可否
 監査ログ機能が利用できないアカウントの場合は指定しても反映されません。
Defaultfalse
Examplefalse
is_restricted_connection_modify
boolean 
接続情報の作成・編集・削除の禁止
Defaultfalse
Examplefalse
Responses
201
作成したユーザーの詳細を返します。
object 
id
integer (int64) 
ユーザーID
Example1
email
string 
ユーザーのEメールアドレス
Exampletrocco@example.com
role
string 
ユーザーの権限
Valid values[ "super_admin", "admin", "member" ]
Exampleadmin
can_use_audit_log
boolean 
監査ログ機能の利用可否
 監査ログ機能が利用できないアカウントの場合はレスポンスに含まれません。
Exampletrue
is_restricted_connection_modify
boolean 
接続情報の作成・編集・削除の禁止
Examplefalse
last_sign_in_at
string | null 
最終ログイン日時
Example2023-08-23T03:00:00.000+09:00
created_at
string 
ユーザーの登録日時
Example2023-08-23T03:00:00.000+09:00
updated_at
string 
ユーザーの更新日時
Example2023-08-23T03:00:00.000+09:00
400
不正なリクエストです。
401
ユーザー作成権限がないか、API KEYが不正です。
Was this article helpful?