{
    "title": "modify order command",
    "id": "schemas/order/modifyOrder",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.ModifyOrder",
    "type": "object",
    "description": "NOTE: orderId is required too except for add order",
    "required": [
        "jobChain"
    ],
    "properties": {
        "orderId": {
            "type": "string"
        },
        "jobChain": {
            "id": "schemas/common/path",
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "/([^/]+/)*[^/]+"
        },
        "state": {
            "description": "the name of the node",
            "type": "string"
        },
        "endState": {
            "description": "the name of the end node",
            "type": "string"
        },
        "at": {
            "id": "schemas/common/timestampWithNow",
            "description": "ISO format yyyy-mm-dd HH:MM[:SS] or now or now + HH:MM[:SS] or now + SECONDS",
            "type": "string",
            "oneOf": [
                {
                    "pattern": "now(\\s*\\+\\s*(\\d+|\\d{1,2}:\\d{1,2}(:\\d{1,2})?))?"
                },
                {
                    "format": "date-time"
                }
            ]
        },
        "timeZone": {
            "description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
            "type": "string"
        },
        "resume": {
            "description": "only useful when changing order state of suspended orders",
            "type": "boolean"
        },
        "removeSetback": {
            "description": "only useful when order has a setback",
            "type": "boolean"
        },
        "title": {
            "type": "string"
        },
        "priority": {
            "id": "schemas/common/nonNegativeInteger",
            "type": "integer",
            "minimum": 0
        },
        "params": {
            "id": "schemas/common/nameValuePairs",
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.common.NameValuePair",
                "type": "object",
                "required": [
                    "name",
                    "value"
                ],
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "value": {
                        "type": "string"
                    }
                }
            }
        },
        "runTime": {
            "description": "A run_time xml is expected which is specified in the <xsd:complexType name='run_time'> element of  http://www.sos-berlin.com/schema/scheduler.xsd",
            "type": "string"
        }
    }
}