PUT ddl/database/:db/table/:table/property/:property
Description
Add a single property on an HCatalog table. This will also reset an existing property.
URL
http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table/property/:property
Parameters
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 |
Results
Name | Description |
---|---|
database | The database name |
table | The table name |
property | The property name |
Example
Curl Command
% 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'
JSON Output
{ "property": "fruit", "table": "test_table", "database": "default" }