Hello, Iām trying to create a Post request, similar to another one that works just fine.
Only difference is that I have different data for 3 different scenarios, however even testing with absolutely the same data - request body is the same, it is basically the same request but I still receive this error:
āContent type āapplication/octet-streamā not supportedā
I compared the json request body and there is no difference aside the respected Idās that are created, but they are correctā¦
So I fail to understand why it does not work.
Iām using If statements to change the variables , so I have 3 Ifās, although testing with strictly one of them , it ends up having the same json raw data as the working collection and yet the errorā¦also its 415 Unsupported Media Type
edit: Could it be because Iām not using dashes for some of the variables in the json raw? e.g.
āidā:{{roleId}} as I need the variable to not have " " in the request bodyā¦
Editā¦So I had my headers wrong - Accept : Application/json instead of Content-Type : Application/json, all good