{
    "additionalProperties": false,
    "anyOf": [
        {
            "required": [
                "list_id"
            ]
        },
        {
            "required": [
                "list_code"
            ]
        }
    ],
    "description": "Unsubscribe",
    "examples": [
        {
            "email": "test@test.com",
            "list_id": 1,
            "user_id": 1,
            "variant_id": 1
        },
        {
            "email": "test@test.com",
            "list_code": "123",
            "user_id": 1,
            "variant_id": null
        }
    ],
    "properties": {
        "email": {
            "_format": "email",
            "type": "string"
        },
        "list_code": {
            "type": "string"
        },
        "list_id": {
            "type": "integer"
        },
        "user_id": {
            "type": "integer"
        },
        "utm_params": {
            "additionalProperties": false,
            "properties": {
                "utm_campaign": {
                    "type": "string"
                },
                "utm_content": {
                    "type": "string"
                },
                "utm_medium": {
                    "type": "string"
                },
                "utm_source": {
                    "type": "string"
                }
            },
            "title": "Utm params",
            "type": "object"
        },
        "variant_id": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ]
        }
    },
    "required": [
        "email",
        "user_id"
    ],
    "title": "Unsubscribe",
    "type": "object"
}