Add or update the current defined configuration model.
PATCH/configs/model
Add or update the current defined configuration model.
Request​
- application/json
Body
array
Complete model or part of the model.
- Array [
- StringKind
- NumberKind
- BooleanKind
- DateTimeKind
- ArrayKind
- DateKind
- ComplexKind
- StringDictKind
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- Array [
- ]
- Array [
- ]
- ]
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
The fully qualified name of the kind
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
inner object
The fully qualified name of the kind
The fully qualified name of the kind
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
In case of inheritance, this defines the base kinds.
properties object[]
Defines all properties of this complex kind
The name of this property
The fully qualified kind of this property
Default value: false
Defines if this property is required or not
Some human readable description of this property
Default value: false
In case properties are accepted, that are not listed in the model
successor_kinds object
Dictionary of successor kinds.
property name* string[]
The fully qualified name of the kind
The fully qualified name of the kind
Responses​
- 200
- 400
OK if the model is updated successfully
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- StringKind
- NumberKind
- BooleanKind
- DateTimeKind
- ArrayKind
- DateKind
- ComplexKind
- StringDictKind
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- string
- int32
- int64
- float
- double
- boolean
- date
- datetime
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- Array [
- ]
- Array [
- ]
- ]
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
The fully qualified name of the kind
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
inner object
The fully qualified name of the kind
The fully qualified name of the kind
Possible values: [string
, int32
, int64
, float
, double
, boolean
, date
, datetime
]
The runtime kind of this kind
The minimal length of this string
The maximal length of this string
The regexp pattern, that this string has to adhere to
The allowed values of this string enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
minimum object
The minimal value of this number
maximum object
The maximum value of this number
The allowed values of this number enumerated here
The fully qualified name of the kind
In case of inheritance, this defines the base kinds.
properties object[]
Defines all properties of this complex kind
The name of this property
The fully qualified kind of this property
Default value: false
Defines if this property is required or not
Some human readable description of this property
Default value: false
In case properties are accepted, that are not listed in the model
successor_kinds object
Dictionary of successor kinds.
property name* string[]
The fully qualified name of the kind
The fully qualified name of the kind
[
{
"fqn": "test.dice",
"runtime_kind": "int32",
"description": "A dice has 6 sides.",
"minimum": 1,
"maximum": 6
},
{
"fqn": "test.social_security_number",
"runtime_kind": "string",
"description": "A dice has 6 sides.",
"pattern": "^(?!666|000|9\\d{2})\\d{3}-(?!00)\\d{2}-(?!0{4})\\d{4}$"
},
{
"fqn": "test.base",
"properties": [
{
"name": "kind",
"kind": "string",
"required": true,
"description": "The kind of this compound type."
},
{
"name": "name",
"kind": "string",
"description": "The name of the resource.",
"required": true
},
{
"name": "tags",
"kind": "dictionary[string, string]",
"description": "Tags that describe the resource.",
"required": false
}
]
},
{
"fqn": "test.person",
"bases": [
"test.base"
],
"properties": [
{
"name": "fortune",
"kind": "test.dice",
"description": "The current dice value.",
"required": true
},
{
"name": "ssn",
"kind": "test.social_security_number",
"description": "The social security number of this person.",
"required": true
}
]
}
]
Message that explains the error
- text/plain
- Schema