環境更新
    • PDF

    環境更新

    • PDF

    Article summary

    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についてを参照ください。

    Path parameters
    environment_id
    integer (int64) Required

    環境ID

    Body parameters
    object
    name
    string Required

    環境名

    Example本番環境
    Responses
    200

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

    object
    id
    integer (int64)

    環境ID

    Example1
    environment_group_id
    integer (int64)

    環境グループID

    Example1
    name
    string

    環境名

    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.
    指定した環境が存在しません。


    Was this article helpful?

    What's Next