I am having an issue when calling chain of APIs.
- First API with contentype=JSON - works fine.
- Second API with contentype=JSON - works fine.
- Third API with Contentype=Multipart - works fine.
- Fourth API with Contentype=JSON - not working.
Error:- The reason it is failing due to error.
Failed to hit the URLContent-Type application/json is not valid when using multiparts, it must start with "multipart/" or contain "multipart+".
When 3rd API was hit , I set ContentType as Multipart and added file and it worked perfectly.
But when 4th API was hit , I set ContentType back to JSON, but it failed as the requestspecification still has multipart content attached to the Request
How to resolve this?