Skip to main content
Environments

Environment の更新

Forward API リファレンス。

Description

Updates an Environment's configuration and display information with POST.

パス

POST /api/v1/forward/environments/{id}

リクエストヘッダー

ヘッダー必須説明
AuthorizationはいBearer <PAT または SAT>
Content-Typeはいapplication/json

パス参数

パラメーター必須説明
idstringはいEnvironment ID。

リクエストボディ

フィールド必須説明
namestringいいえNew name.
descriptionstringいいえNew description.
configEnvironment configNoNew configuration. It must not be null; an explicit null returns 400. See schemas for field details.
metadataobjectNoEnvironment metadata to merge. It must not be null; an explicit null returns 400.

リクエスト例

curl -X POST "https://api.qoder.com/api/v1/forward/environments/env_xxx" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"dev-env-updated"}'

レスポンス例

HTTP 200 OK
{
  "id": "env_xxx",
  "type": "environment",
  "name": "dev-env",
  "description": "Development environment",
  "config": {"type": "cloud"},
  "metadata": {"source": "console"},
  "created_at": "2026-07-23T10:00:00Z",
  "updated_at": "2026-07-23T10:00:00Z",
  "identity_id": null
}

レスポンスフィールド

The response is an Environment object.

エラー

HTTPType発生条件
400invalid_request_errorリクエストボディ、パスパラメーター、またはクエリパラメーターが不正です。
400invalid_request_errorIf the reserved key created_by is supplied, message is metadata key "created_by" is reserved, identifying the invalid field.
401authentication_error認証トークンがないか、無効です。
403permission_error呼び出し元にはこのリソースへのアクセス権限がありません。
404not_found_errorリソースが存在しないか、参照できません。
500/502/503api_errorForward または依存サービスでエラーが発生しました。
Environment の更新 - Qoder