Reporter API function returns error "httpStatusCode: 400"