---
title: "POST /target-update-google-trust"
method: POST
path: "/target-update-google-trust"
tags: ["v2"]
---

# POST /target-update-google-trust

`POST /target-update-google-trust`

## Request body

- TargetUpdateGoogleTrust — targetUpdateGoogleTrust is a command that updates an existing Google Trust target
  - `acme-challenge` string — ACME challenge type. Options: [dns]
  - `delete_protection` string — Protection from accidental deletion of this object [true/false]
  - `description` string — Description of the object
  - `dns-target-creds` string — Name of existing cloud target for DNS credentials. Required when challenge type is dns. Supported providers: AWS, Azure, GCP, Cloudflare
  - `dns-zone` string — Cloudflare DNS zone identifier. Required when DNS credentials target is Cloudflare
  - `eab-hmac-key` string — External Account Binding HMAC key (required for ACME account bootstrap on create)
  - `eab-key-id` string — External Account Binding key identifier (required for ACME account bootstrap on create)
  - `email` string, required — Email address for ACME account registration
  - `gcp-project` string — GCP Cloud DNS project ID. Optional and can be derived from service account
  - `google-trust-url` string — Google Trust directory environment. Options: [production/staging]
  - `hosted-zone` string — AWS Route53 hosted zone ID. Required when DNS credentials target is AWS
  - `json` boolean — Set output format to JSON
  - `keep-prev-version` string — Whether to keep previous version [true/false]. If not set, use default according to account settings
  - `key` string — The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
  - `max-versions` string — Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required — Target name
  - `new-name` string — New target name
  - `resource-group` string — Azure resource group name. Required when DNS credentials target is Azure
  - `timeout` string — Timeout for challenge validation
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `201`

targetUpdateGoogleTrustResponse wraps response body.

- TargetUpdateOutput
  - `target_id` integer

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
