Found this content helpful? Log in or sign up to leave a like!
We are encountering a 422 Unprocessable Content error when attempting to PUT data to the Canvas LMS API at the endpoint /api/v1/users/self/custom_data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2025
03:12 AM
namespace = "AI_For_All";
dataKey = "course_1";
$.ajax({
url: `/api/v1/users/self/custom_data/${dataKey}`,
type: "PUT",
data: {
ns: namespace,
data: JSON.stringify(AI_for_ALL),
},
success: function (response) {
console.log("Saved:", response);
window.AIDebugger.showSetter(AI_for_ALL)
},
error: function (xhr) {
//console.error("Error:", xhr.responseText);
},
});
This code runs in a setInterval every second. While we are not seeing any 403 Forbidden (Rate Limit Exceeded) errors, we are encountering a 422 Unprocessable Content error when attempting to PUT data to the Canvas LMS API.
The code works as expected on our end across multiple machines, browsers, devices, and templates. However, at the client’s environment, the same request fails with the 422 Unprocessable Content error
