Preview API: improved response when request contains no JSON

Description

We added validation that returns a meaningful error when no JSON is sent as part of requests to:

  • POST api/v2/taskmanagement/workitems
  • PATCH api/v2/taskmanagement/workitems/{id}

Change Category

API

Change Context

We added a validation that returns a meaningful error when no JSON is sent as part of these requests.

Change Impact

Customers will now get a 400 response instead of a 500 when sending no json to these endpoints.

Date of Change

Immediate

Impacted APIs

  • POST api/v2/taskmanagement/workitems
  • PATCH api/v2/taskmanagement/workitems/{id}

References

[WORKITEMS-2393]