twprojects-create_custom_item_record
Create a record (row) on a custom item type. For example, add a Contract on the Contracts type. Pass field values by name; the tool resolves names to the API's internal IDs. Custom items are user-defined entity types — Contracts, Leads, Deals, or anything else a customer has set up on a project. Use these tools when the user refers to an entity that is NOT a built-in Teamwork concept (Task, Tasklist, Project, Milestone, Comment, Notebook, Company, Team, User, Tag). If you don't recognise an entity name in the user's request, assume it is a custom item and call twprojects-list_custom_items on the relevant project to confirm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the record (e.g. "Acme Inc Contract"). | |
| section_id | No | Optional section ID to place the record in. | |
| field_values | No | Field values to set on the record. Each entry is {field_name, value}. Field names are matched case-insensitively against the custom item type's fields. Values are coerced by field type: dropdown/multiselect accept option labels or option twIds; date/time/datetime accept ISO-8601 strings; checkbox accepts bool or yes/no/true/false; number accepts numeric or numeric string; user accepts a user ID (or array of IDs for multi-user fields). To clear a field, send null. | |
| custom_item_id | Yes | Custom item type ID that will own the new record. | |
| position_after_id | No | Place the record after the given record ID. Null appends to the end. |