v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1376177324.7 KB
projects

Creates a new Attribute definition in the parent consent store.

post/v1/{+parent}/attributeDefinitions

Path parameters

parentstring required

Required. The name of the consent store that this Attribute definition belongs to.

Query parameters

attributeDefinitionIdstring

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

Request body

consentDefaultValuesstring[]

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

namestring

Identifier. Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

descriptionstring

Optional. A description of the attribute.

allowedValuesstring[]

Required. Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

category'CATEGORY_UNSPECIFIED' | 'RESOURCE' | 'REQUEST'

Required. The category of the attribute. The value of this field cannot be changed after creation.

dataMappingDefaultValuestring

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

Response

Successful response