Skip to content

Schema

/schema

Retrieves current schema.

  • rights: schema, get, publish
  • verbs: GET
  • parameters: none
  • returns: JSON [{},...] representing the list of properties that make up the environment schema.
bash
curl https://test-m1.minusonedb.com/schema \
-H "m1-auth-token: $myToken"
bash
m1 test-m1 schema
200 OKEnvironment schema

/schema/add

Add properties to the environment schema. Can be called as many times as desired to add new property definitions.

  • rights: schema
  • verbs: POST
ParameterTypeRequired
propertiesproperty[]Yes

Each property is a map with the following keys:

KeyTypeRequired
nameStringYes
typeStringYes. One of: string, text, integer, double, date.
multibooleanNo. Default false. If true the property can contain multiple values.
descriptionStringNo. Default null. Comment describing property, purely for informational purposes.
bash
curl https://test-m1.minusonedb.com/schema/add \
-d 'properties=[
    {
        "name": "myTags",
        "type": "string",
        "multi": true,
        "description": "Represents important tags."
    },
    {
        "name": "myBoolean",
        "type": "boolean"
    }
]' \
-H "m1-auth-token: $myToken"
bash
m1 test-m1 schema/add -properties '[
    {
        "name": "myTags",
        "type": "string",
        "multi": true,
        "description": "Represents important tags."
    },
    {
        "name": "myBoolean",
        "type": "boolean"
    }
]'

# Or load from file:
m1 test-m1 schema/add -properties @fileWithSchema.json

No response when successful.

/schema/wipe

Deletes all user defined properties in the environment schema. Note that this does not modify data that has already been written to the data lake.

  • rights: schema
  • verbs: POST
  • parameters: none
bash
curl -X POST https://test-m1.minusonedb.com/schema/wipe \
-H "m1-auth-token: $myToken"
bash
m1 test-m1 schema/wipe/

No response when successful.

© 2021-2026 MinusOne, Inc.