put http://<host>:9100/api/versioned/v1/datasets//attributes/
Requirements
In order to successfully update an attribute, the following must be true:
- Attribute's
name
has to be the same- Attribute's
type
has to be the sameThis means the only field that can be updated for an attribute is the description.
For example, a post
body like:
{
"name": "myAttribute",
"description": "new info about myAttribute",
"type": {
"baseType": "STRING"
}
}
will update the description of the myAttribute
.
Response Fields
Returns a JSON object with the name and data type of the attribute. An optional description will be returned, if it exists.
Field | Description |
---|---|
name | The name of the attribute. |
description | Optional. The description of the attribute. Will only be included in the response if there is a description associated with the attribute. |
type | The type of the attribute. Will contain a base type. For certain base types, such as array or map , it will also contain an inner type describing the type contained by the base type (e.g. boolean or int). |