--- name: templates-routes description: Handle 7 OpenAPI operation(s) under /templates for the templates route group. --- # templates API Routes Handle 7 OpenAPI operation(s) under /templates for the templates route group. Use the generated operation tools to make real API calls. Do not invent API responses. If a tool reports missing setup, return the exact setup field name to the caller. For write, update, or delete operations, state the intended action before calling the tool. ## Operations ### post_templates - Operation ID: `post_templates` - Route: `POST /templates` - Mode: WRITE - Summary: Create a template - Body: JSON request body accepted. ### get_templates - Operation ID: `get_templates` - Route: `GET /templates` - Mode: READ - Summary: Retrieve a list of templates - Parameters: - `limit` in `query` - `after` in `query` - `before` in `query` ### get_templates_id - Operation ID: `get_templates_id` - Route: `GET /templates/{id}` - Mode: READ - Summary: Retrieve a single template - Parameters: - `id` in `path` required ### patch_templates_id - Operation ID: `patch_templates_id` - Route: `PATCH /templates/{id}` - Mode: WRITE - Summary: Update an existing template - Parameters: - `id` in `path` required - Body: JSON request body accepted. ### delete_templates_id - Operation ID: `delete_templates_id` - Route: `DELETE /templates/{id}` - Mode: WRITE - Summary: Remove an existing template - Parameters: - `id` in `path` required ### post_templates_id_publish - Operation ID: `post_templates_id_publish` - Route: `POST /templates/{id}/publish` - Mode: WRITE - Summary: Publish a template - Parameters: - `id` in `path` required ### post_templates_id_duplicate - Operation ID: `post_templates_id_duplicate` - Route: `POST /templates/{id}/duplicate` - Mode: WRITE - Summary: Duplicate a template - Parameters: - `id` in `path` required