"Initiate page views query" API returns error 400 if results_format is JSON

Issue Documented: 2025-11-04
Canvas

This behavior has been resolved and deployed to the production environment as of 11/6/25.

Description

If a user sends a page_views.query API request with the parameter “results_format": "json", the following error is thrown:

“error": "Page Views received an invalid or malformed request."

Expected Behavior

The page_views.query API endpoint should allow for results_format to be set to JSON, as per our documentation.

Workaround

No workaround exists at this time.

Steps to Reproduce

Prerequisites: a user with some page views

  1. Using your API Token, run the API request with "results_format": "json"

    1. Notice the error 400

  2. Replace the "results_format": "json" with "results_format": "csv", then run the request again

    1. Notice the request is successful

Additional Info

PVIEW-903


Known issues indicate notable behaviors that have been escalated to the Canvas engineering team. Known issues are not a guarantee for an immediate resolution. This document is for informational purposes only and does not replace the Support process. If you are encountering the behavior outlined in this document, please ensure you have submitted a Support case (per your institution's escalation process) so Canvas Support can adequately gauge the overall customer impact and prioritize appropriately.

Labels (1)