Code 0 Error while Updating Workflow


I’m trying to make a patch request to change the workflow Active Status. But Im getting this response after making the request. Here are the details of the request.

Request Headers & Body

headers: {
          "authorization": basicAuth,
        body: jsonEncode(<String, bool>{
          "active": activeStatus,


{code: 0, message: Cannot create property 'updatedAt' on string '{"active":true}'}

I figured it out : had to add this in header.

{'Content-type': 'application/json'}


1 Like