Workfront Fusion Custom API Call module 422 error

Learn how to resolve the 422 error ([ 422] Invalid Parameter: updates value “undefined, JSON parsing error…”) that occurs when trying to use a Workfront Custom API Call module with a PUT, DELETE, or POST action.

Description description

Environment

  • Workfront Fusion

Issue/Symptoms

You get a 422 error ([ 422] Invalid Parameter: updates value “undefined, JSON parsing error…”) when trying to use a Workfront Custom API Call module with a PUT, DELETE, or POST action.

Resolution resolution

Follow these steps to resolve the issue:

  1. Open the Custom API Call module that is giving the 422 error.
  2. Delete the Content-Type header.
  3. Click the  Map Toggle in the header.
  4. Save the module.

Cause

This error is typically caused by the  Custom API Call module being configured to use Query Parameters instead of the Body to pass information. However, the module is configured as a default to have a Body. Deleting the Content-Type header and toggling the Map Toggle header will resolve this issue.

Related Reading

Custom API Callin the Workfront guide.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f