Code 0 Error while Updating Workflow

Hi,

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,
        }),

Response

{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'}

Thanks

1 Like