Domains

Create schema.

This endpoint is used to send new schema for a given domain.

post/domains/{domainId}/schemas

Path parameters

domainIdstring required

ID of the domain to import model into

Request body

Example request

{
  "data": {
    "value": {
      "$id": "address",
      "required": [
        "street_address",
        "city",
        "state"
      ],
      "properties": {
        "street_address": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      }
    }
  }
}

Response

successful operation

Example response

{
  "data": {
    "value": {
      "$id": "address",
      "required": [
        "street_address",
        "city",
        "state"
      ],
      "properties": {
        "street_address": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      }
    }
  }
}

Changes