---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/trial:end"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/trial:end"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/trial:end

`POST /v1/projects/{projectsId}/locations/{locationsId}/trial:end`

## Request

- Base URL: `https://backupdr.googleapis.com`
- URL: `https://backupdr.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/trial:end`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-backupdr`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-backupdr`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Ends the trial for a project

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Request body

- EndTrialRequest: Request message for ending a trial.
  - `endReason` 'END_REASON_UNSPECIFIED' | 'MOVE_TO_PAID' | 'DISCONTINUED': Required. The reason for ending the trial.

## Response `200`

Successful response

- Trial: Represents a Trial for a project.
  - `endReason` 'END_REASON_UNSPECIFIED' | 'MOVE_TO_PAID' | 'DISCONTINUED': Output only. The reason for ending the trial.
  - `endTime` string, google-datetime: Output only. The time when the trial will expire.
  - `name` string: Identifier. The resource name of the trial. Format: projects/{project}/locations/{location}/trial
  - `startTime` string, google-datetime: Output only. The time when the trial was subscribed.
  - `state` 'STATE_UNSPECIFIED' | 'SUBSCRIBED' | 'UNSUBSCRIBED' | 'EXPIRED' | 'ELIGIBLE' | 'NOT_ELIGIBLE': Output only. The state of the trial.

## Changes

- **2026-11-05** `da857420b4f6`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-backupdr` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-backupdr` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`
- **2026-10-29** `3244196e66b0`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-backupdr` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-backupdr` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/backupdr/changes/v1/projects/:projectsId/locations/:locationsId/trial:end/post.md)

---

[API](https://skmtc.dev/google/apis/backupdr.md) - [All operations](https://skmtc.dev/google/apis/backupdr/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/backupdr/revisions/da857420b4f6?raw)
