"Invalid request payload input" when using ManagementClient in Rules

Problem statement

I am trying to make a call to a function with the ManagementClient but it’s failing with an “Invalid request payload input” error.

Symptoms

  • “Invalid request payload input” error

Cause

  • The data passed in the request is incorrect or uses the wrong data type.

Solution

The recommended solution is to find your method from the ManagementClient documentation here and follow the example usage. The error happens from incorrect usage of the ManagementClient methods.

Reference Materials: