Shadow Experiment Service

Update a shadow experiment target

PATCH
/projects/{projectId}/endpoints/{endpointId}/shadowExperiments/{experimentId}/targets/{id}

Updates a shadow target's name, deployment, or description. updateMask is required and must select at least one mutable field.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project identifier.

endpointId*string

Endpoint identifier.

experimentId*string

Shadow experiment identifier.

id*string

Shadow experiment target identifier.

Query Parameters

updateMask*string

Comma-separated fields to update. Supported fields are name, targetDeploymentId, and description.

Request Body

application/json

Mutable name, deployment, and description for a shadow experiment target.

name?string

Updated human-readable target name.

targetDeploymentId?string

Replacement deployment under the parent endpoint. It must not be a live traffic-split member or the source or target of an active rollout; traffic-split weight 0 warm-up targets are allowed.

description?string

Updated free-form target description.

etag?string

Opaque version tag from a prior read for optimistic concurrency.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://example.com/projects/string/endpoints/string/shadowExperiments/string/targets/string?updateMask=string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "experimentId": "string",  "name": "string",  "targetDeploymentId": "string",  "description": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "etag": "string"}