Skip to main content
POST
Add proposals to a draft capex plan from a spreadsheet, or correct the ones it has: a row giving the Proposal ID of a…

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Add proposals to a draft capex plan from a spreadsheet, or correct the ones it has: a row giving the Proposal ID of a proposal on this plan corrects it, and a row with none adds one, as does a row with an ID no proposal has where your organisation lets people type one. Needs finance.capex_scheme.create, as adding one proposal does, and finance.capex_scheme.edit as well for a file that names a proposal already on the plan. Proposals the file does not mention are left as they are. Every amount in the file can have at most ten digits before the decimal point and two after it, and a row with a wider one is a problem, except where it gives back unchanged the figure the proposal it corrects already holds. Writes everything or nothing, and only when p_dry_run is false. Where proposals are approved one at a time, a proposal that can no longer be changed — with its approvers, decided, or a draft whose planning window has closed — is skipped with a notice when its row says what it already holds, and refuses the file when the row would change it.

p_payload
string<jsonb>
required
p_plan_id
string<uuid>
required
p_dry_run
boolean<boolean>

Response

200

OK