{
"type": "object",
"properties": {
"automations": {
"title": "automations",
"description": "Array of automation documents to import. If '_id' is provided, it will be replaced with an autogenerated '_id'.",
"type": "array",
"items": {
"$ref": "automationImport"
}
}
},
"required": [
"automations"
],
"additionalProperties": false
}
{
"title": "response",
"type": "object",
"properties": {
"imported": {
"type": "array",
"items": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Status flag denoting the success (true) or failure (false) of the automation's import operation."
},
"message": {
"type": "string",
"description": "Message containing either confirmation of the import operation or the reason for the failure of the import operation."
},
"original": {
"description": "The original automation given in the import array.",
"$ref": "automationImport"
},
"created": {
"description": "The imported automation as it exists after being imported.",
"oneOf": [
{
"$ref": "automation"
},
{
"type": "null"
}
]
},
"edit": {
"description": "URI to the edit page for the imported automation.",
"type": [
"string",
"null"
]
}
},
"required": [
"status",
"message",
"original",
"created",
"edit"
]
}
}
}
}