Add Schema

Create or update properties and required fields for a collection.

Input

  • Schema
    • Collection (text):  Name of the target collection.
    • Raw Object (object):  Sample asset object that will be used as a template to generate schema fields.
    • Properties Object (object):  Object containing field names and type values.  Overlapping fields from Raw Object and Properties Object input are merged and submitted as one properties object for the schema.   Must be formatted: {”“: {“type”: “”}}.
      • e.g. { “model”: { “type”: “string”}, “coordinates”: {“type”: “object”}, “cost”: {“type”: “number”}}.
    • Required (string collection):  list of text of fields that are required fields.