Add a single property on an HCatalog table. This will also reset an existing property.
http://
www.myserver.com/templeton/v1/ddl/database/
:db/table/
:table/property/
:property
Name | Description | Required? | Default |
---|---|---|---|
:db | The database name | Required | None |
:table | The table name | Required | None |
:property | The property name | Required | None |
group | The user group to use | Optional | None |
permissions | The permissions string to use | Optional | None |
value | The property value | Required | None |
The standard parameters are also supported.
Name | Description |
---|---|
database | The database name |
table | The table name |
property | The property name |
% curl -s -X PUT -HContent-type:application/json -d '{ "value": "apples" }' \ 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/property/fruit?user.name=ctdean' |
{ "property": "fruit", "table": "test_table", "database": "default" } |