trello_create_check_item
Add a check item to a Trello checklist with due date and member assignment. Supports position and checked state.
Instructions
Add an item to a checklist. Supports due dates and member assignment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Trello API key (optional if TRELLO_API_KEY env var is set) | |
| token | No | Trello API token (optional if TRELLO_TOKEN env var is set) | |
| checklistId | Yes | ID of the checklist to add the item to | |
| name | Yes | Text of the check item | |
| pos | No | Position: "top", "bottom", or a number | |
| checked | No | Whether the item should start as checked | |
| due | No | Due date in ISO 8601 format (e.g., "2024-12-31T23:59:59Z") | |
| idMember | No | ID of the member to assign |
Implementation Reference
- src/types/trello.ts:172-178 (schema)TypeScript interface for the create check item API request payload. Defines name, pos, checked, due, and idMember fields.
export interface CreateCheckItemRequest { name: string; pos?: string | number; checked?: boolean; due?: string; idMember?: string; } - src/trello/client.ts:886-895 (helper)TrelloClient.createCheckItem() - Makes the actual HTTP POST request to Trello API /checklists/{checklistId}/checkItems to create a check item.
async createCheckItem(checklistId: string, data: CreateCheckItemRequest): Promise<TrelloApiResponse<TrelloCheckItem>> { return this.makeRequest<TrelloCheckItem>( `/checklists/${checklistId}/checkItems`, { method: 'POST', body: JSON.stringify(data) }, `Create check item "${data.name}" on checklist ${checklistId}` ); }