Disable/Enable Integration Instance via API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable/Enable Integration Instance via API

L0 Member

Can anyone provide an example of the API request they're utilizing to disable or enable an instance for an Integration via the CORE API?

 

Everything I've tried results in 400 error with this message:
"id": "errOptimisticLock",
"status": 400,
"title": "Optimistic lock error",
"detail": "Optimistic lock error",
"error": "DB Version '7' and Insert version '3' do not match for id: 367f530a-39c7-4252-8d39-23cb17e4ccfb on bucket [modules] [moduleInstances] (15)",
"encrypted": false,
"multires": null

 

Currently attempting to perform a PUT via the /settings/integration endpoint with the instance configuration JSON essentially changing enabled from true to false for which I need (shortened example pictured below).

mikeahrendt_0-1687536527716.png

 




1 REPLY 1

L4 Transporter

Hi @mikeahrendt ,


It seems that errOptimisticLock complains about the integration version, which changes every time you modify the integration. Please make sure that you provide the current version number, which seems to be 7, when you execute the API request.

I hope this answers your question.

 

  • 1070 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!