Create a user-defined type (UDT) called address
POST {{base_rest_url}}{{rest_schema}}/{{rkeyspace}}/types
Request Body
{"name"=>"address_type", "fields"=>[{"name"=>"street", "typeDefinition"=>"text"}, {"name"=>"city", "typeDefinition"=>"text"}, {"name"=>"state", "typeDefinition"=>"text"}, {"name"=>"zip", "typeDefinition"=>"text"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cassandra-Token | string | ||
Content-Type | string |