def create_payload_for_firmware_update(job_type_id, id_baseline,
                                       id_cat, repository_id, target_data):
    """ Formulate the payload to initiate a firmware update job """
    return {
        "JobName": "Update Firmware-Test:" + id_baseline,
        "JobDescription": "Firmware Update Job",
        "Schedule": "startNow",
        "State": "Enabled",
        "JobType": {
            "Id": job_type_id,
            "Name": "Update_Task"
        },
        "Params": [{
            "Key": "complianceReportId",
            "Value": id_baseline
        }, {
            "Key": "repositoryId",
            "Value": repository_id
        }, {
            "Key": "catalogId",
            "Value": id_cat
        }, {
            "Key": "operationName",
            "Value": "INSTALL_FIRMWARE"
        }, {
            "Key": "complianceUpdate",
            "Value": "true"
        }, {
            "Key": "signVerify",
            "Value": "true"
        }, {
            "Key": "stagingValue",
            "Value": "false"
        }],
        "Targets": target_data
    }