ワークスペースを部分的に更新します。プロジェクトスコープは、ルート ID パス パラメーターによって保持されます。フィールドのみのパッチは 204 を返します。ステータス専用パッチ(一時停止/再開)は他のフィールドと排他的であり、ECP のアプリ本体(任意の warnings を含む)とともに 200 を返します。
body
必須
更新するフィールド
-
AutoDeploy は、アプリレベルの ECPフィールド(ゲートウェイ DB に永続化されていない)です。は ECPアプリPATCH に冗長性を転送しました。
-
ReleaseMode は、アプリレベルの ECPフィールド(ゲートウェイ DB には保持されていない)です。は ECPアプリPATCH に冗長性を転送しました。 Webhook トリガーされたビルドのみを制御します - APIトリガーされたリリースはすべてのモードで利用可能です。
-
ステータスは一時停止/再開シグナル("active"||"一時停止") です。ゲートウェイはローカルに保持しません。ハンドラーはステータスのみのパッチを ECP に直接転送し、一時停止の引き継ぎ/再開の再配置を実行します。
応答
-
サポートされていないAPIバージョンまたは不正な API バージョン、選択した公開契約で利用できない操作、または受け入れができない表現(サポートされていないメディアタイプのパラメーター、または除外された SSE を含む)。既存の認証、認可、およびレート制限の失敗が優先されます。
-
ステータスのみのパッチの場合に返されます。 ECP からプロキシされた
-
フィールド アップデート パッチの場合に返されます。
-
無効なリクエスト
-
見つかりません
-
エンティティが大きすぎるリクエスト
-
リクエストが多すぎる
-
内部サーバーエラー
-
ECP トランスポートまたは一時停止シャットダウンの障害。
-
サービスは利用できません
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
}