v1

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

Creates an SageMaker trial. A trial is a set of steps called trial components that produce a machine learning model. A trial is part of a single SageMaker experiment.

When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided by the SDK.

You can add tags to a trial and then use the Search API to search for the tags.

To get a list of all your trials, call the ListTrials API. To view a trial's properties, call the DescribeTrial API. To create a trial component, call the CreateTrialComponent API.

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

Headers

X-Amz-Target'SageMaker.CreateTrial' required

Request body

TrialNamestring required

The name of the trial. The name must be unique in your Amazon Web Services account and is not case-sensitive.

DisplayNamestring

The name of the trial as displayed. The name doesn't need to be unique. If <code>DisplayName</code> isn't specified, <code>TrialName</code> is displayed.

ExperimentNamestring required

The name of the experiment to associate the trial with.

Response

Success

TrialArnstring

The Amazon Resource Name (ARN) of the trial.