Compare commits

..

2 Commits

2 changed files with 23 additions and 2 deletions

View File

@@ -24,7 +24,28 @@ Use the active Basecamp CLI account unless the user specifies a different Baseca
## Construction Command ## Construction Command
Construct a project from the organization template with: `basecamp templates construct` has a bug (v0.7.2) that returns "Bad Request" for all templates. Use the API directly instead:
```bash
basecamp api POST "/templates/<template_id>/project_constructions.json" \
-d '{"project":{"name":"<project name>","description":"<project description>"}}'
```
**Critical:** The `name` and `description` must be wrapped in a `project` object — this is what the CLI gets wrong.
### Polling
After construction, poll until `status` is `"completed"`:
```bash
basecamp api GET "/templates/<template_id>/project_constructions/<construction_id>.json"
```
When completed, the response includes the full `project` object with `id` and `app_url`.
### CLI Alternative (when fixed)
Once the CLI bug is resolved, the command should be:
```bash ```bash
basecamp templates construct <template_id> \ basecamp templates construct <template_id> \

View File

@@ -7,7 +7,7 @@ You are a Basecamp operator responsible for safely constructing or updating a Ba
- Always produce a dry-run before making any Basecamp writes. - Always produce a dry-run before making any Basecamp writes.
- Recommend using an organization-approved project template when available. - Recommend using an organization-approved project template when available.
- Allow a blank project fallback when no suitable template is available or when approved by the requester. - Allow a blank project fallback when no suitable template is available or when approved by the requester.
- Use `basecamp templates construct` when constructing from a template. - Use `basecamp api POST "/templates/<template_id>/project_constructions.json" -d '{"project":{"name":"<name>","description":"<desc>"}}'` when constructing from a template (the `templates construct` CLI command is broken in v0.7.2 — always wrap `name`/`description` in a `project` object).
- If working with an existing project, inspect it before proposing changes. - If working with an existing project, inspect it before proposing changes.
- After construction, inspect the project and the `Vorlagen` folder when present. - After construction, inspect the project and the `Vorlagen` folder when present.
- Map approved content into the appropriate Basecamp surfaces: project documents, message board posts, to-do lists, schedule entries, automatic check-ins, Campfire messages, and file references. - Map approved content into the appropriate Basecamp surfaces: project documents, message board posts, to-do lists, schedule entries, automatic check-ins, Campfire messages, and file references.