Import Data Model
post
ss/oc-cnpolicy-configuration/v1/policymgmt/policytests/datamodels/import
Request
Supported Media Types
- application/json
Query Parameters
-
action(optional): string
ActionAllowed Values:
[ "ignore", "replace" ]
body
Nested Schema : DataModel
Type:
object
Title:
Show Source
DataModel
-
description(optional):
string
-
enumItems(optional):
array enumItems
-
fields(optional):
array fields
-
id:
string
-
labelName:
string
-
multiValue(optional):
boolean
-
name:
string
-
type:
string
Allowed Values:
[ "enum", "object" ]
Nested Schema : enumItems
Type:
Show Source
array
-
Array of:
object EnumItemConfiguration
Title:
EnumItemConfiguration
Nested Schema : fields
Type:
Show Source
array
-
Array of:
object FieldConfiguration
Title:
FieldConfiguration
Nested Schema : FieldConfiguration
Type:
object
Title:
Show Source
FieldConfiguration
-
description(optional):
string
-
itemType(optional):
object ItemConfiguration
Title:
ItemConfiguration
-
labelName:
string
-
name:
string
-
objectType(optional):
string
-
primitiveType(optional):
string
-
type(optional):
string
Allowed Values:
[ "array", "object", "primitive" ]
Nested Schema : ItemConfiguration
Type:
object
Title:
Show Source
ItemConfiguration
-
objectType(optional):
string
-
primitiveType(optional):
string
Allowed Values:
[ "boolean", "measurement", "number", "string" ]
-
type(optional):
string
Allowed Values:
[ "object", "primitive" ]
Response
Supported Media Types
- application/problem+json
200 Response
OK
Root Schema : schema
Type:
object
201 Response
Imported
Nested Schema : DataModel
Type:
object
Title:
Show Source
DataModel
-
description(optional):
string
-
enumItems(optional):
array enumItems
-
fields(optional):
array fields
-
id:
string
-
labelName:
string
-
multiValue(optional):
boolean
-
name:
string
-
type:
string
Allowed Values:
[ "enum", "object" ]
Nested Schema : enumItems
Type:
Show Source
array
-
Array of:
object EnumItemConfiguration
Title:
EnumItemConfiguration
Nested Schema : fields
Type:
Show Source
array
-
Array of:
object FieldConfiguration
Title:
FieldConfiguration
Nested Schema : FieldConfiguration
Type:
object
Title:
Show Source
FieldConfiguration
-
description(optional):
string
-
itemType(optional):
object ItemConfiguration
Title:
ItemConfiguration
-
labelName:
string
-
name:
string
-
objectType(optional):
string
-
primitiveType(optional):
string
-
type(optional):
string
Allowed Values:
[ "array", "object", "primitive" ]
Nested Schema : ItemConfiguration
Type:
object
Title:
Show Source
ItemConfiguration
-
objectType(optional):
string
-
primitiveType(optional):
string
Allowed Values:
[ "boolean", "measurement", "number", "string" ]
-
type(optional):
string
Allowed Values:
[ "object", "primitive" ]
400 Response
Bad request
401 Response
Unauthorized
403 Response
Forbidden
404 Response
Not Found
405 Response
Method Not Allowed
406 Response
Not Acceptable
408 Response
Request Timeout
409 Response
Conflict
412 Response
Precondition Failed
500 Response
Internal Server Error
503 Response
Service Unavailable
504 Response
Gateway Timeout