Email on Acid API createstandalonespamtest JSON Schema




{
    "description" : "CreateStandaloneSpamTest",
    "type" : "object",
    "properties" : {
        "content" : {
            "type" : "object",
            "required" : false,
            "properties" : {
                "html" : {
                    "type" : "string",
                    "required" : false,
                    "pattern" : "/^[a-zA-Z0-9\\/\\r\\n+]*={0,2}$/"
                },
                "url" : {
                    "type" : "string",
                    "required" : false
                },
                "charset": {
                    "type" : "string",
                    "required" : true
                },
                "encoding" : {
                    "type" : "string",
                    "required" : true
                }
            }
        },
        "subject" : {
            "type" : "string",
            "required" : false
        },
        "from_address" : {
            "type" : "string",
            "required" : false
        },
        "test_id" : {
            "type" : "string",
            "required" : false
        },
        "user_guid" : {
            "type" : "string",
            "required" : false
        },
        "spam_type" : {
            "type" : "string",
            "required" : true,
            "enum" : [ "seed", "smtp", "eoa" ]
        },
        "spam_clients" : {
            "type" : "array",
            "items": {
                "type":"object",
                "properties": {
                    "spam_code" : {
                        "type" : "integer",
                        "required" : true
                    },
                    "spam_name" : {
                        "type" : "string",
                        "required" : true
                    }
                }
            },
            "required" : false,
            "minItems" : 1
        },
        "smtp_info" : {
            "type" : "object",
            "required" : false,
            "properties" : {
                "smtp_host" : {
                    "type" : "string",
                    "required" : true
                },
                "smtp_port" : {
                    "type" : "integer",
                    "required" : true
                },
                "smtp_secure" : {
                    "type" : "string",
                    "required" : true,
                    "enum" : [ "ssl", "tls", "" ]
                },
                "smtp_acct" : {
                    "type" : "string",
                    "required" : true
                },
                "smtp_pass" : {
                    "type" : "string",
                    "required" : true
                },
                "smtp_from" : {
                    "type" : "string",
                    "required" : true
                }
            }
        }
    }
}