as am trying to use this API getting 405 method not allowed, but when am trying with PUT its working for me only when i giving the processInstanceKey as elementInstanceKey in pathParam
@Basavaraj_S.P - that is because you are using PUT, but that endpoint supports POST only:
Yeah but with POST am getting 405 method not allowed
@Basavaraj_S.P - it seems I slightly misread your post, apologies.
Can you share two requests, one working and one not working? (For example, two curl commands, or screenshots of Postman.) Are you using Self-Managed or SaaS, and what version of Camunda are you running?
/v2/element-instances/:elementInstanceKey/variables → POST method not working
/v2/element-instances/:elementInstanceKey/variables → PUT method working for ProcessInstanceKey
Camunda version → 8.6.7 SaaS
@Basavaraj_S.P - apologies for not being clear - can you share the actual request, not just the URL? For instance, if you’re testing with Postman, can you take screenshots of the request and it’s configuration? Of course, please redact any sensitive information!
Successful is PUT, and failing is POST. Is it expected?
Thanks @Basavaraj_S.P - I’ll share this with our engineers and see what they think! At this point I suspect our documentation is wrong, but I need to confirm with the engineers.
@Alex_Voloshyn - the documentation says it should be POST
Thanks @nathan.loding that would be a great help
Hey @Basavaraj_S.P - I confirmed with the engineering team that this is an issue with the documentation; the docs will be updated soon (though I’m not certain when the deployment will happen). Either way, it should be PUT, so continue to use that verb! Thanks for pointing out the discrepancy!
Thanks @nathan.loding for keeping in touch.