/bid/update
This action updates an existing bid associated with a work order.
Request
| Field | Description | Required |
|---|---|---|
comp_note_id | Unique identifier for the bid | Yes |
qty | Bid quantity | No |
qty_completion | Completion quantity | No |
uom | Unique identifier for the Unit of Measure (UOM). See /bid/uom | No |
contractor_price | Contractor price | No |
client_price | Client price | No |
comment | Comment | No |
comp_comment | Completion comment | No |
A bid is uniquely identified by comp_note_id; it can be retrieved
through the /bid/list action.
Example:
{
"comp_note_id": 42,
"qty": 5,
"qty_completion": 6,
"contractor_price": 5.15,
"client_price": 39.17,
"comment": "lock padlock comment",
"comp_comment": "lock completion comment"
}
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{"comp_note_id":42,"qty":5,"qty_completion": 6,"contractor_price":5.15,"client_price":39.17,"comment":"lock padlock comment","comp_comment":"lock completion comment"}' \
https://ppw.web/svc/bid/update
Response
| Field | Description | Type |
|---|---|---|
result | Bid update result | string |
Example successful response:
{
"result": "Bid updated"
}
Errors
| Error Type | Description | Status Code |
|---|---|---|
access_denied | Access token is invalid or expired | 401 |
scope_invalid | Client app does not have the required OAuth scope | 403 |
comp_note_required | comp_note_id not in the request | 400 |
comp_note_invalid | comp_note_id is invalid | 400 |
qty_invalid | Bid quantity is invalid | 400 |
uom_invalid | Unit of Measure (UOM) is invalid | 400 |
uom_not_allowed | Unit of Measure (UOM) cannot be set | 400 |
contractor_price_invalid | Contractor price is invalid | 400 |
client_price_invalid | Client price is invalid | 400 |
comment_invalid | Comment is invalid | 400 |
not_found | Bid not found | 400 |