Mason Adams
Tera Contributor
PUT https://{instance}.service-now.com/api/sn_sc/servicecatalog/variables/{table_name}/{sys_id}
table name can what ever task you want to reference and sys_id is that task's sys_id 
pass the variables in the body
{"var1":"val1","var2":"val2"}