Put a JSON Schema

PUT {{base_doc_url}}{{doc_api}}/{{namespace}}/collections/{{collection2}}/json-schema

Request Body

{"title"=>"Person", "type"=>"object", "properties"=>{"firstName"=>{"type"=>"string", "description"=>"The person's first name."}, "lastName"=>{"type"=>"string", "description"=>"The person's last name."}, "age"=>{"description"=>"Age in years which must be equal to or greater than zero.", "type"=>"integer", "minimum"=>0}}}

HEADERS

KeyDatatypeRequiredDescription
X-Cassandra-Tokenstring(Required) The token returned from the authorization endpoint. Use this token in each request to the database.
Content-Typestring

RESPONSES

status: Created

{"name":"killrvideo"}