Domains
Create schema.
Changed onThis endpoint is used to send new schema for a given domain.
post/domains/{domainId}/schemas
Request
- Base URLhttp://metadata.openintegrationhub.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
domainIdstring required
ID of the domain to import model into
Request body
Example request
{
"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
- info
added the non-success response with the status
- info
- breaking
added
subschema #2to the request bodyallOflist - breaking
the request's body type changed from
objectto no type - warning
removed the request property
- breaking