Locked Jobs - Simpro API
Posted: Wed Apr 24, 2024 2:48 pm
Hi,
I'm currently building an Integration where I need to update Job custom field often based on a webhook trigger event.
When testing updates, I've found that if an end user has a job open in Simpro, that job is "locked" by that user and returns a 422 error with the message "This job is currently locked by [user name]".
I've tried to get round this by then calling the endpoint "Delete job lock" on that Job, but get a 422 error with the error message "Must acquire the lock to release it." Link to endpoint: https://developer.simprogroup.com/apido ... 8dbc6e93ec
My question is: can a job be unlocked and updated if it is open by a user. Is there a way to force close it to make an update?
Thanks in advance!
I'm currently building an Integration where I need to update Job custom field often based on a webhook trigger event.
When testing updates, I've found that if an end user has a job open in Simpro, that job is "locked" by that user and returns a 422 error with the message "This job is currently locked by [user name]".
I've tried to get round this by then calling the endpoint "Delete job lock" on that Job, but get a 422 error with the error message "Must acquire the lock to release it." Link to endpoint: https://developer.simprogroup.com/apido ... 8dbc6e93ec
My question is: can a job be unlocked and updated if it is open by a user. Is there a way to force close it to make an update?
Thanks in advance!