v3

OpenAPI 3.1.0MIT2026-07-31192456807.8 KB
ShadowExperimentService

Update a shadow experiment target

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

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

Path parameters

projectIdstring required

Project identifier.

endpointIdstring required

Endpoint identifier.

experimentIdstring required

Shadow experiment identifier.

idstring required

Shadow experiment target identifier.

Query parameters

updateMaskstring required

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

Request body

namestring

Updated human-readable target name.

targetDeploymentIdstring

Replacement deployment under the parent endpoint. Exclude it from the endpoint's live traffic split.

descriptionstring

Updated free-form target description.

etagstring

Opaque version tag from a prior read for optimistic concurrency.

Response

OK

idstring required

Output only. Unique shadow experiment target identifier.

experimentIdstring required

Output only. Shadow experiment this target belongs to.

namestring required

Human-readable target name, unique within the shadow experiment. At most 256 characters.

targetDeploymentIdstring required

Deployment under the parent endpoint that receives mirrored traffic. Shadow targets should be excluded from the endpoint's live traffic split.

descriptionstring

Optional free-form target description.

createdAtstring date-time required

Output only. Timestamp when the target was created.

updatedAtstring date-time required

Output only. Timestamp when the target was last updated.

etagstring required

Opaque version tag for optimistic concurrency control. Returned on read; set it on update or delete requests for consistent read-modify-write.