Create Proposal
Create a new draft for a proposal.
Body
The ID of the Proposales company that the proposal draft should belong to.
A two-letter ISO 3166-1 alpha-2 language code indicating the language of the proposal.
The proposal title as Markdown. Only data URLs for variables are supported, other formatting syntax is ignored.
The proposal description as Markdown. We support #
for headers, *
for bold, a <
prefix for left-aligned paragraphs and data URLs for variables (see example).
The recipient of the proposal.
Needs to be this shape:
{ id: number }
Proposal metadata. This data is used to fill in variables in the description. Metadata is preserved when a draft is sent, making it ideal for attaching custom data to proposals.
A list of blocks to be added to the draft. The content_id
must be the ID of the product in the content library. Additional block data can be passed to overwrite the content library defaults.
Needs to satisfy this shape:
{ content_id: number }[]
A list of attachments to be added to the draft. Attachments will be fetched from the provided URL and hosted reliably by Proposales.
Needs to be this shape:
{
mime_type: string
name: string
url: string
}[]