Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Joshua_Boerum
Participant
Jump to solution

Locked for editing by - API


I've run into data locks when I went to change an object through the API and it was locked by user1. What I've done in the past is use the API to pull up sessions, and switch through each one by the UID and discard changes. Sometimes the API would say 'management server failed to execute command' so i moved on not knowing which session was locking it. Eventually some allowed me to switch into and discard changes and then I was able to modify the object.

Today I went to modify the only object thats created and its locked...Figured I'd write a script to purge all sessions and discard changes but now im getting an error for every session, even when I do it manually with Postman.

How can I unlock this object through the API?

Error Response:

{

  "code": "generic_server_error",

  "message": "Management server failed to execute command"

}

0 Kudos
1 Solution

Accepted Solutions
Joshua_Boerum
Participant

Hey Uri,

I saw your post https://community.checkpoint.com/thread/1066 to include the domain and after doing so I have not had an issue with locked objects. My script successfully went through all sessions it could connect to and discarded changes, unlocking the object I purposefully locked.

Thanks,

Josh

View solution in original post

0 Kudos
2 Replies
Uri_Bialik

Hi Joshua,

We will contact you by email to follow up on this.

Uri

0 Kudos
Joshua_Boerum
Participant

Hey Uri,

I saw your post https://community.checkpoint.com/thread/1066 to include the domain and after doing so I have not had an issue with locked objects. My script successfully went through all sessions it could connect to and discarded changes, unlocking the object I purposefully locked.

Thanks,

Josh

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events