Locked Jobs - Simpro API

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
livbirks
Posts: 1
Joined: Wed Apr 24, 2024 2:39 pm

Locked Jobs - Simpro API

Post by livbirks » 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!
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Locked Jobs - Simpro API

Post by Sindre » Thu Apr 25, 2024 11:31 pm

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
Sindre
API Developer | Simpro Software Group
Post Reply