Update a proposal
PUT/api/proposal/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| subject | String | Mandatory. Proposal Subject Name. |
| Mandatory. | string | Proposal Related. |
| rel_id | Number | Mandatory. Related ID. |
| proposal_to | string | Mandatory. Lead / Customer name. |
| date | Date | Mandatory. Proposal Start Date. |
| open_till | Date | Optional. Proposal Open Till Date. |
| currency | string | Mandatory. currency id. |
| discount_type | string | Optional. Proposal Open Till Date. |
| status | string | Optional. status id. |
| Assigned | string | Optional. Assignee id. |
| string | Mandatory. Email id. | |
| newitems | Array | Mandatory. New Items to be added. |
| items | Array | Optional. Existing items with Id |
| removed_items | Array | Optional. Items to be removed |
curl -X PUT "https://yoursite.com/api/proposal/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "subject": "...", "Mandatory.": "...", "rel_id": "...", "proposal_to": "...", "date": "...", "open_till": "...", "currency": "...", "discount_type": "...", "status": "...", "Assigned": "...", "Email": "...", "newitems": "...", "items": "...", "removed_items": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": false,
"message": "Proposal Updated Successfully"
} Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Proposal Update Fail"
}