Docs
Add Line Item From Resource
POST /Proposals/{proposalId}/lineItems/from-resource
POST
/Proposals/{proposalId}/lineItems/from-resourceAdds a line item priced from a procurement need. With procurementResourceId it links that existing need; without it, a need is created from resourceTypeId and quantity. The line's name defaults to the resource type's name. A component need cannot be billed, bill its composite instead. Procurement ids come from Procurements_GetProcurements and resource type ids from Resources_Get. Returns no body; read the new line from Proposals_GetProposal. Refused while the proposal's price is locked (status Accepted, Paid or Canceled). Requires event admin permission.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| proposalId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| procurementId | uuid | Optional | |
| procurementResourceId | uuid | Optional | |
| resourceTypeId | uuid | Optional | |
| quantity | number | Optional | |
| lineItemGroupId | uuid | Optional | |
| name | string | Optional |