---
title: "POST /v1/{+parent}/attributes"
method: POST
path: "/v1/{+parent}/attributes"
tags: ["projects"]
---

# POST /v1/{+parent}/attributes

`POST /v1/{+parent}/attributes`

Create a DataAttribute resource.

## Path parameters

- `parent` string, required

## Query parameters

- `dataAttributeId` string
- `validateOnly` boolean

## Request body

- GoogleCloudDataplexV1DataAttribute — Denotes one dataAttribute in a dataTaxonomy, for example, PII. DataAttribute resources can be defined in a hierarchy. A single dataAttribute resource can contain specs of multiple types PII - ResourceAccessSpec : - readers :foo@bar.com - DataAccessSpec : - readers :bar@foo.com
  - `description` string — Optional. Description of the DataAttribute.
  - `name` string — Output only. The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
  - `etag` string — This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
  - `labels` object — Optional. User-defined labels for the DataAttribute.
  - `displayName` string — Optional. User friendly display name.
  - `attributeCount` integer — Output only. The number of child attributes present for this attribute.
  - `dataAccessSpec` GoogleCloudDataplexV1DataAccessSpec — DataAccessSpec holds the access control configuration to be enforced on data stored within resources (eg: rows, columns in BigQuery Tables). When associated with data, the data is only accessible to principals explicitly granted access through the DataAccessSpec. Principals with access to the containing resource are not implicitly granted access.
    - `readers` string[] — Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
  - `createTime` string, google-datetime — Output only. The time when the DataAttribute was created.
  - `parentId` string — Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
  - `updateTime` string, google-datetime — Output only. The time when the DataAttribute was last updated.
  - `resourceAccessSpec` GoogleCloudDataplexV1ResourceAccessSpec — ResourceAccessSpec holds the access control configuration to be enforced on the resources, for example, Cloud Storage bucket, BigQuery dataset, BigQuery table.
    - `readers` string[] — Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
    - `writers` string[] — Optional. The set of principals to be granted writer role on the resource.
    - `owners` string[] — Optional. The set of principals to be granted owner role on the resource.
  - `uid` string — Output only. System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dataplex.md) · [All operations](https://skmtc.net/google/apis/dataplex/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dataplex/versions/43a3b60ca93b/schema)
