ワークスペースを部分的に更新します。プロジェクトの範囲は、ルート ID パス パラメータによって指定されます。フィールドのみのパッチは 204 を返します。ステータスのみのパッチ (一時停止/再開) は他のフィールドとは相互に排他的であり、ECP のアプリ本体 (warnings を含む) と共に 200 を返します。
body
必須
更新するフィールド
-
AutoDeploy はアプリレベルの ECP フィールドです (ゲートウェイ DB には永続化されません)。ECP のアプリ PATCH にそのまま転送されます。
-
ReleaseMode はアプリレベルの ECP フィールドです(ゲートウェイ DB には永続化されません)。そして、ECP のアプリ PATCH にそのまま転送されます。webhook トリガーするビルドするのみが制御されます。なお、API トリガーするリリースは、すべてのモードで利用できます。
-
ステータスは、一時停止/再開シグナル ("active" | "paused") です。ゲートウェイはそれをローカルで永続化しません。ハンドラーはステータスのみのパッチを ECP に直接転送します。そして、ECP は pause-teardown / resume-redeploy を実行します。
応答
-
未対応または形式が不正な API バージョン、選択した公開されたコントラクトでは利用できない操作、または受け入れられない表現 (未対応のメディアタイプ パラメータまたは除外された SSE を含む)。既存の認証、承認、およびレート制限の失敗が優先されます。
-
ステータスのみのパッチのため返却されました。ECP からプロキシを介して転送されました。
-
フィールド更新パッチのために返されました。
-
無効なリクエスト
-
見つかりません
-
リクエスト エンティティが大きすぎます
-
リクエストが多すぎます
-
内部サーバーエラー
-
ECP トランスポートまたは pause-teardown 失敗。
-
サービスは利用できません
curl \
--request PATCH 'https://agentengine.mongodb.com/api/v1/projects/{id}/workspaces/{workspace_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"agent_card": {
"a2a_allowed_callers": [
"string"
],
"a2a_enabled": true,
"capabilities": [
"string"
],
"input_modes": [
"string"
],
"output_modes": [
"string"
],
"skills": [
{
"description": "string",
"example_input": "string",
"example_output": "string",
"name": "string"
}
],
"summary": "string"
},
"auto_deploy": true,
"description": "string",
"features": {
"guardrails": true,
"memory": true,
"playground": true,
"use_custom_parser": true
},
"framework": "string",
"gitops": {
"branch": "string",
"connection_ref": "string",
"manifest_path": "string",
"provider": "string",
"repo_url": "string"
},
"name": "string",
"release_mode": "string",
"status": "string",
"subdirectory": "string",
"workspace_name": "string"
}'
{
"agent_card": {
"a2a_allowed_callers": [
"string"
],
"a2a_enabled": true,
"capabilities": [
"string"
],
"input_modes": [
"string"
],
"output_modes": [
"string"
],
"skills": [
{
"description": "string",
"example_input": "string",
"example_output": "string",
"name": "string"
}
],
"summary": "string"
},
"auto_deploy": true,
"description": "string",
"features": {
"guardrails": true,
"memory": true,
"playground": true,
"use_custom_parser": true
},
"framework": "string",
"gitops": {
"branch": "string",
"connection_ref": "string",
"manifest_path": "string",
"provider": "string",
"repo_url": "string"
},
"name": "string",
"release_mode": "string",
"status": "string",
"subdirectory": "string",
"workspace_name": "string"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"app_id": "string",
"org_id": "string",
"project_id": "string",
"status": "active",
"warnings": [
"string"
]
}
{
"app_id": "string",
"org_id": "string",
"project_id": "string",
"status": "active",
"warnings": [
"string"
]
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
# Headers
Retry-After: string
# Payload
{
"code": "string",
"error": "string",
"success": true
}
# Headers
Retry-After: string
# Payload
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
# Headers
Retry-After: string
# Payload
{
"code": "string",
"error": "string",
"success": true
}
# Headers
Retry-After: string
# Payload
{
"code": "string",
"error": "string",
"success": true
}