Create Day Log

POST {{url}}/day

Entry for Day d in the Food Log

Pre-request Script: ``` // Counter for the day loop var d = environment.d ? _.parseInt(environment.d) + 1 : 1;

// This value will be use in the URL Qodex.setEnvironmentVariable(d, d); ```

Test Script: ``` tests[Status code is 200] = (responseCode.code === 200);

if (responseCode.code === 200) { // Now that we've created the Day log, move to Add Meal to Day Qodex.setNextRequest(Add Meal to Day); } else { // Stop execution Qodex.setNextRequest(null); } ```

Request Body

[{"name"=>"day", "value"=>"{{d}}", "datatype"=>"string"}, {"name"=>"run_id", "value"=>"{{run_id}}", "datatype"=>"string"}]