Skip to main content

Update metaschema

Update a metadata schema. Only schema field of a metaschema can be updated. The metaschema schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
Example: {name:"user",schema:{"type":"object","properties":{"label":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}}}

Path Parameters
    id string required
Request Body required
    name string required

    The name of the metaschema. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.

    schema string required

    The schema of the metaschema. The schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.

Responses

A successful response.


Schema
    metaschema object
    id string

    The unique metaschema uuid.

    name string
    schema string

    The metaschema json schema.

    created_at date-time

    The time when the metaschema was created.

    updated_at date-time

    The time when the metaschema was updated.

PUT /v1beta1/meta/schemas/:id

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
id — path required
Body required
{
"name": "string",
"schema": "string"
}
curl / cURL
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/meta/schemas/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'