v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-143021,9861.6 MB

Deploys the new EndpointConfig specified in the request, switches to using newly created endpoint, and then deletes resources provisioned for the endpoint using the previous EndpointConfig (there is no availability loss).

When SageMaker receives the request, it sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

You must not delete an EndpointConfig in use by an endpoint that is live or while the UpdateEndpoint or CreateEndpoint operations are being performed on the endpoint. To update an endpoint, you must create a new EndpointConfig.

If you delete the EndpointConfig of an endpoint that is active or being created or updated you may lose visibility into the instance type the endpoint is using. The endpoint must be deleted in order to stop incurring charges.

post/#X-Amz-Target=SageMaker.UpdateEndpoint

Headers

X-Amz-Target'SageMaker.UpdateEndpoint' required

Request body

EndpointNamestring required

The name of the endpoint whose configuration you want to update.

EndpointConfigNamestring required

The name of the new endpoint configuration.

RetainAllVariantPropertiesboolean

When updating endpoint resources, enables or disables the retention of <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_VariantProperty.html">variant properties</a>, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, set <code>RetainAllVariantProperties</code> to <code>true</code>. To use the variant properties specified in a new <code>EndpointConfig</code> call when updating an endpoint, set <code>RetainAllVariantProperties</code> to <code>false</code>. The default is <code>false</code>.

RetainDeploymentConfigboolean

Specifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused).

Response

Success

EndpointArnstring required

The Amazon Resource Name (ARN) of the endpoint.