patch
https://api.hcssapps.com/precon/api/v1/businessUnits//Projects/
This is a PARTIAL implementation of the JsonPatch protocol - See https://tools.ietf.org/html/rfc6902 for more information.
Setting an object property within an array is NOT supported (e.g. "path": "fields/estimates/2/selectedEstimate")
Instead, use a replace on the full array element (e.g. "path": "fields/estimates/2")
Examples of valid operations:
Replace a string:
PATCH /businessUnits/{businessUnitId}/projects/{id}
[
{
"path": "fields/name",
"op": "add",
"value": "New Project Name"
}
]
Replace an entire array:
PATCH /businessUnits/{businessUnitId}/projects/{id}
[
{
"path": "fields/bidResults",
"op": "add",
"value": [{"name": "Competitor 1", "amount": 38204, "winner": true}]
}
]
Add an element to end of array:
PATCH /businessUnits/{businessUnitId}/projects/{id}
[
{
"path": "fields/bidResults/-",
"op": "add",
"value": {"name": "Competitor 1", "amount": 38204, "winner": true}
}
]
Replace the first element in an array:
PATCH /businessUnits/{businessUnitId}/projects/{id}
[
{
"path": "fields/bidResults/0",
"op": "replace",
"value": {"name": "Competitor 1", "amount": 38204, "winner": true}
}
]
For help with authorization, see https://developer.hcssapps.com/getting-started/request-tokens