環境更新

Prev Next
Patch
/api/environments/{environment_id}

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

Security
API Key: ApiKeyAuth
Header parameter nameAuthorization

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

Path parameters
environment_id
integer (int64) Required

環境ID

Body parameters
object
name
string

環境名

Example本番環境
memo
string

メモ

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

更新した環境の詳細を返します。

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が不正です。

404

Not found.
指定した環境が存在しません。