Drop Attribute

POST {{HDB_ENDPOINT}}

Drop an existing attribute from the specified table. NOTE: Dropping an attribute will delete all associated attribute values in that table.

Operation is restricted to superuser roles only

  • operation (required) - this should always be "dropattribute"
  • schema (required) - schema where the table you are dropping lives.
  • table (required) - table where the attribute you are dropping lives.
  • attribute (required) - attribute that you intend to drop.

Request Body

{"operation"=>"drop_attribute", "schema"=>"dev", "table"=>"dog", "attribute"=>"is_adorable"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"message":"successfully deleted attribute 'is_adorable'"}