環境作成

Prev Next
Post
/api/environments

環境を作成します。
環境作成にはアカウント管理者以上の権限が必要です。

Security
API Key: ApiKeyAuth
Header parameter nameAuthorization

認証キーとなるAPI KEYをAuthorization: Token {{API KEY}}の形式でヘッダーにセットします。
API KEYがabc123の場合は、Authorization: Token abc123とします。
API KEYの作成方法は、TROCCO API KEYの作成を参照ください。

Body parameters
object
environment_group_id
integer (int64) Required

環境グループID

Example1
name
string Required

環境名

Example本番環境
memo
string

メモ

Example# 環境のメモ この環境は本番用です。
Responses
201

作成した環境の詳細を返します。

object
id
integer (int64)

環境ID

Example1
environment_group_id
integer (int64)

環境グループID

Example1
name
string

環境名

Example本番環境
memo
string | null

メモ

Example# 環境のメモ この環境は本番用です。
created_at
string

環境の作成日時

Example2023-08-23T03:00:00.000+09:00
updated_at
string

環境の更新日時

Example2023-08-23T03:00:00.000+09:00
400

Bad request.
不正なリクエストです。

401

Not authenticated or insufficient permissions.
環境作成権限がないか、API KEYが不正です。