Added a check for the InvocationID field in the POST JSON.