cancel
Showing results for 
Search instead for 
Did you mean: 

Error in batch update(PUT) with OData Integration API - SAP CPI

former_member440061
Participant
0 Kudos
488

Hello All,

I am trying to update the externalized parameter values of an iFlow using external HTTP call with POSTMAN. I followed the below links for doing this:

https://blogs.sap.com/2018/07/06/cloud-integration-remote-odata-apis-for-integration-flows/

https://help.sap.com/docs/SAP_INTEGRATION_SUITE/51ab953548be4459bfe8539ecaeee98d/d4c97116fdc14913b93...

But I am getting "405 Method Not Allowed" error in POSTMAN:

Given below the details of the POSTMAN request:

URL: https://myHost.hana.ondemand.com/api/v1/$batch/

Authentication: Basic

Headers:

X-CSRF-Token

Content-Type (multipart/mixed; boundary=batch_34fcd829-64e4-4139-b880-f24aa4ee9235)

Body:

-------------------------------------------------------------------

--batch_34fcd829-64e4-4139-b880-f24aa4ee9235

Content-Type: multipart/mixed; boundary=changeset_5e8e492f-2e3f-490f-9629-a4cd82a7aafd

--changeset_5e8e492f-2e3f-490f-9629-a4cd82a7aafd

Content-Type: application/http

Content-Transfer-Encoding: binary

PUT IntegrationDesigntimeArtifacts(Id='Testiflow1',Version='active')/$links/Configurations('Log03_GS_LogData') HTTP/1.1

Accept: application/json

Content-Type: application/json

{

"ParameterKey" : "Log03_GS_LogData",

"ParameterValue" : "blr002",

"DataType" : "xsd:string"

}

--changeset_5e8e492f-2e3f-490f-9629-a4cd82a7aafd--

--batch_34fcd829-64e4-4139-b880-f24aa4ee9235--

----------------------------------------------------------------------

I have ensured that the token is correct. Also, I have tried using the boundary value without "--", it still fails with same error.

Any hints on what I might be doing wrong here? Thanks!

Note: The update is working when I do a PUT for single parameters with following URL:

https://myHost.hana.ondemand.com/api/v1/IntegrationDesigntimeArtifacts(Id='Testiflow1',Version='active')/$links/Configurations('Log03_GS_LogData')

Regards,

Faisal

Accepted Solutions (1)

Accepted Solutions (1)

former_member440061
Participant
0 Kudos

For Anyone looking for an answer to this, the request will work with an POST operation with same body in form data format as given in problem description here. So, in POSTMAN, select the operation as POST and use PUT in batch body.

Answers (0)