Error "Request Entity Too Large: Payload content length greater than maximum allowed: 1048576" when Updating Client

Problem statement

When trying to update the Auth0 Client by calling the PATCH /api/v2/clients/{id} endpoint, the below error is received:

Error: Payload Too Large
at Request.callback (/builds/atbdigitalteam/enes/auth0/atb-exp-ui-auth0-login/node_modules/rest-facade/node_modules/superagent/lib/node/index.js:921:17)
at /builds/atbdigitalteam/enes/auth0/atb-exp-ui-auth0-login/node_modules/rest-facade/node_modules/superagent/lib/node/index.js:1165:20
at IncomingMessage.<anonymous> (/builds/atbdigitalteam/enes/auth0/atb-exp-ui-auth0-login/node_modules/rest-facade/node_modules/superagent/lib/node/parsers/json.js:22:7)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
statusCode: 413,
requestInfo: {
method: 'patch',
url: 'https://[MASKED]/api/v2/clients/[MASKED]'
},

Solution

The payload restriction of 1048576 is in place to protect the service and ensure that one customer does not apply too much load all at once. It cannot be increased.