build_submit_url
Builds a prefilled web form URL from a draft YAML, setting the legal basis via law_type. For long drafts, creates a short URL plus sidecar body file to avoid FragDenStaat's URL limit.
Instructions
Build the prefilled web form URL — the recommended way out. RED tier.
This is the only route on which the legal basis can actually be chosen
(``?law_type=...``); the REST API's MakeRequestSerializer has no such field. Sending
stays with the human.
fragdenstaat.de answers GET URLs above roughly 4096 bytes with HTTP 400 (measured
2026-09-05). Longer drafts therefore get a two-step answer: a short URL that
prefills subject and law_type, plus the body in a sidecar text file.
Args:
path: path to the draft YAML file.
dry_run: True (default) does not write the sidecar .body.txt file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No |