set_project_field
Add a column to a project, or edit the one that already has this name. Keyed by name rather than by id: 'make sure there is a Segment field with these options' is the request, and a name is what you just read. A field's KIND cannot be changed once it exists. Project lead or admin only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | The glyph that mark wears, from the palette list_project_fields returns. Not for a country field: that one marks a card with the flag of the country the issue holds, so passing an icon is refused rather than ignored. | |
| kind | No | What it holds: 'text', 'number', 'date', 'user', 'select' (a list) or 'country' (a country, written as its name or its two-letter code and shown with a flag). Required when creating; ignored when the field already exists, since a kind cannot change. | |
| name | Yes | Field name, e.g. 'Segment'. An existing field with this name is edited rather than duplicated. | |
| newName | No | Rename the field to this. Leave out to keep the name. | |
| options | No | For a list: its options, as 'AI:green, Skins:orange, GameCards' or a JSON array of {name, color}. A colour is optional and must be one of: orange, amber, red, pink, purple, blue, teal, green. Options left out are REMOVED — send the whole set. | |
| showIcon | No | Mark a board card when this field has a value: true to switch the mark on, false off. Leave out to keep it as it is. | |
| projectKey | Yes | Project key, e.g. 'CRM'. |