The api for required workflow, for both create and update , returns the created workflow object in the response.
Currently the code for these do not return the create object back in an object instead only return the JSON version of these objects.
It would be good to return a typed object as this would enable us to get the details of the created workflow such as name, id etc.