By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the Control to create already exists, an ALREADY_EXISTS error is returned.
HTTP request
POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/dataStores/*}/controls
Required. Full resource name of parent data store. Format: projects/{project}/locations/{location}/collections/{collectionId}/dataStores/{dataStoreId} or projects/{project}/locations/{location}/collections/{collectionId}/engines/{engineId}.
Query parameters
Parameters
controlId
string
Required. The ID to use for the Control, which will become the final component of the Control's resource name.
This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["This document describes how to create a Control within a data store, using a POST HTTP request to a specified endpoint."],["The request requires a `parent` path parameter indicating the full resource name of the data store, as well as a `controlId` query parameter with specific character requirements."],["The request body and the response body both use the `Control` object format."],["Creating a Control requires the `discoveryengine.controls.create` IAM permission on the parent resource and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."],["By default, 1000 controls are allowed per data store, but a request can be submitted to adjust this number, and if a control already exists, an `ALREADY_EXISTS` error will occur."]]],[]]