Attach a construction plan PDF
attach_plan_pdfAttach a PDF the user selected in this conversation as the first plan for a new Portravo project. Plan PDFs must be 10 MiB or smaller. Accepts exactly one of plan, a host-provided download_url and file_id, or plan_inline, canonical base64 of the exact user-uploaded PDF bytes with file_name and application/pdf mime_type, up to 32 KiB. A PDF with no file link above 32 KiB, or any PDF above the direct limit, is uploaded in the browser at the project's reviewUrl instead. That browser path streams up to 50 MiB for the selected automatic trades. Projects that already have a plan or review work are refused, so existing work is never replaced. Repeating a call with the same idempotency_key returns the original result. Stores the selected PDF privately in the connected account; does not extract or consume credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Host-provided signed file link for a PDF the user attached (PDF up to 10 MiB). | |
| project_id | Yes | ||
| plan_inline | No | Exact bytes of a user-uploaded PDF as canonical base64, only when no file link exists. PDF up to 32 KiB. | |
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| reviewUrl | Yes | ||
| planFileId | Yes |