Updates the configuration of a specified Deployment. All fields are optional; only the provided fields are updated.
Prerequisites
Endpoint and authentication have been configured. For details, see API overview and authentication.
Endpoint
POST /deployments/{deployment_id}
Path parameters
deployment_id string (必选)
Deployment ID
Request bodynamestring (可选)Deployment name, up to 256 charactersdescription string (可选)Description of the deployment purposeagent object (可选)Associated Agentenvironment_id string | null (可选)Associated Environment IDschedule object | null (可选)Schedule trigger configuration; pass null to clear the scheduleinitial_events array<object> (可选)List of initial events sent to the Agent on trigger, 1-50 itemsresources array<object> (可选)List of mounted file resourcesvault_ids array<string> (可选)List of associated Vault IDsmetadata object (可选)Custom business key-value pairs | Request example |
Response fieldsidstring—type string—name string—description string—agent object—environment_id string—schedule object | null—initial_events array<object>—resources array<object>—vault_ids array<string>—metadata object—status string—paused_reason object | nullPause reason; returned only when the deployment is pausedarchived_at string | null—created_at string—updated_at string—request_id stringUnique identifier of this request; include it when troubleshooting | Response |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |
| 409 | DEPLOYMENT_STATE_CONFLICT | Cannot update an archived deployment. |