create_custom_field
Define a new custom field on a billing entity type (project, task, subtask, time report, or customer) for your organization. The organization is fixed by your context - never pass an organization id. type is one of String, Number, Date, DateTime, ListOfValues; ListOfValues requires at least one option. Marking a field mandatory blocks creating that entity type until a value is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Field data type (required). One of: String, Number, Date, DateTime, ListOfValues. | |
| title | Yes | Human-readable label shown in the UI (required). | |
| entity | Yes | The entity type this field is defined on (required). One of: billing_projects, billing_tasks, billing_sub_tasks, sub_tasks_time_reports, billing_customers. | |
| field_id | Yes | A unique, stable key for the field (required, max 50 chars), e.g. "po_number". | |
| is_mandatory | No | Whether a value is required when creating/updating the entity. Defaults to false. | |
| list_of_values | No | Options for a ListOfValues field (required for that type; at least one non-blank option). | |
| idempotency_key | No | Optional caller-supplied key; retrying with the same key returns the original result instead of acting twice. |