Page 1 of 1

Locked Jobs - Simpro API

Posted: Wed Apr 24, 2024 2:48 pm
by livbirks
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!

Re: Locked Jobs - Simpro API

Posted: Thu Apr 25, 2024 11:31 pm
by Sindre
Hi livbirks,
The API does not have any the possibility to force close an open job or override a Simpro user that is making changes other that waiting for the lock that is set in Simpro to time out.

Regards