cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post

Locked for editing by - API

Jump to solution


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"

}

Tags (4)
0 Kudos
1 Solution

Accepted Solutions

Re: Locked for editing by - API

Jump to solution

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
2 Replies

Re: Locked for editing by - API

Jump to solution

Hi Joshua,

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

Uri

0 Kudos

Re: Locked for editing by - API

Jump to solution

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