---
title: "POST /v1/{+name}:complete"
method: POST
path: "/v1/{+name}:complete"
tags: ["projects"]
---

# POST /v1/{+name}:complete

`POST /v1/{+name}:complete`

Marks a Trial as complete.

## Path parameters

- `name` string, required

## Request body

- GoogleCloudAiplatformV1CompleteTrialRequest — Request message for VizierService.CompleteTrial.
  - `trialInfeasible` boolean — Optional. True if the Trial cannot be run with the given Parameter, and final_measurement will be ignored.
  - `finalMeasurement` GoogleCloudAiplatformV1Measurement — A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
    - `elapsedDuration` string, google-duration — Output only. Time that the Trial has been running at the point of this Measurement.
    - `stepCount` string, int64 — Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
    - `metrics` GoogleCloudAiplatformV1MeasurementMetric[] — Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
      - `metricId` string — Output only. The ID of the Metric. The Metric should be defined in StudySpec's Metrics.
      - `value` number, double — Output only. The value for this metric.
  - `infeasibleReason` string — Optional. A human readable reason why the trial was infeasible. This should only be provided if `trial_infeasible` is true.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/revisions/b608d71b91f0/schema)
