on 03-10-2023 3:23 PM
Status 415 is unsupported media type.
Probably you have to specify Content-Type header for this SF call.
If you look at API Business Hub for this API call, seems to want: Content-Type = application/json
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not exactly sure if my case on SAP EHP system and SOAPUI is the same as SAP BTP, but perhaps my idea could be of help:
1. for my DELETE method, my request payload for data format does not matter, only the URI need to be paired with key value ( perhaps related to step 2 )
2. perhaps the format of the data is wrong for PUT / POST? in my case, it looks like this ( does not contain '\' character 😞
{ "Field1":"value1","Field2":"value2" }
@juanparedes5 I'm not familiar with this API, and I do not have a system to test the POST calls.
Can you show how you are you are adding the headers, and also what schema/data you are sending with the POST?
If possible, can you use developer tools when you click Test and see what request is actually sent?
I at least simulate it with SAP API Business Hub. I supplied as header Accept = application/json (though leaving this out does not produce 415 error).
URL: https://sandbox.api.sap.com/successfactors/odata/v2/FOJobCode
HEADERS: Accept and APIKey
I can reproduce the 415 error by sending a bad Content-Type -- though I did not have to send a good Content-Type
Hi Daniel, I have already solved the problem, if anyone needs something similar I can explain that.
First, I had to create a schema with the propities that I needed, then I configure a destination in BTP Cockpit with the HTML5.DynamicDestination propity as true. Finally I use the create configuration for all methods. Each one requires particular configuration but in general I use them in the same way.
Thanks for all your anwers, you helped me so much!
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.