Page 1 of 1
PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID} ItemsLocked
Posted: Thu Oct 28, 2021 12:27 am
by iconone
Hi,
Is ItemsLocked = true available on PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID}?
It's in the documentation as a body field but when I execute it, I can't lock the cost centre items.
https://developer.simprogroup.com/apido ... 9380c5c95c
Thanks.
Re: PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID} ItemsLocked
Posted: Thu Oct 28, 2021 1:36 am
by Dinesh
Hi,
The ItemsLocked is a read-only field in the cost center endpoint.
We will be updating the documentation for that.
The task hasn't been prioritized yet.
Thank you
Re: PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID} ItemsLocked
Posted: Thu Oct 27, 2022 4:07 pm
by jmc2408
Hi,
This is still showing as a PATCH field.
Tried to use it today and it done nothing.
Thanks
John
Re: PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID} ItemsLocked
Posted: Thu Oct 27, 2022 10:33 pm
by robbertcha
Hi,
It is in our to-do list, but we are gonna to make the lock feature workable like how it works in simPRO UI, we will send you an update when it has been implemented, please keep an eye on API release update, thank you.
API release update
viewforum.php?f=3
Re: PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID} ItemsLocked
Posted: Mon Jan 30, 2023 8:48 am
by mattkitchin
Hi
Has this been implemented?
i have been trying to lock a quote before i send the labour over but sending "ItemsLocked": true dosent seem to change anything
Re: PATCH /api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID} ItemsLocked
Posted: Tue Jan 31, 2023 12:07 am
by Sindre
Hi mattkitchin, Thanks for the follow up.
We have done investigations on this issue but it has not been developed yet and is in our development queue.
With the many options in simPRO today for locking a cost centre by items, by estimates and revised means the API needs to handle the different scenarios in a different way than the existing endpoint your refer to.
The endpoint is working fine when using GET to see the current status of Items Locked but using PATCH will require more information from the user to avoid errors.
Please keep following our updates for more.
Regards