Skip to main content
Version: 1.3.0

Create schema

POST 

/metalakes/:metalake/catalogs/:catalog/schemas

Create schema

Request

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

Body

    name stringrequired

    The name of the schema. For catalogs that support hierarchical (multi-level) schemas, the name may encode a nested path joined by the configured schema separator (gravitino.schema.separator, default :), e.g. a:b:c creates schema c under the existing parent schema a:b.

    comment stringnullable

    A comment describing the schema

    properties

    object

    nullable

    A map of properties for the schema

    property name* string

Responses

Returns include the schema object

Schema

    code int32

    Possible values: [0]

    Status code of the response

    schema

    object

    A schema

    name stringrequired

    The name of the schema

    comment stringnullable

    A comment describing the schema

    audit

    object

    required

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

    properties

    object

    nullable

    A map of properties for the schema

    property name* string
Loading...