> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.xero.accounting.CreateTrackingCategoryOption

- Component: `appmixer.xero.accounting.CreateTrackingCategoryOption`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.xero 2.3.0](https://connectors.appmixer.com/connector/appmixer.xero/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.xero/2.3.0/component/appmixer.xero.accounting.CreateTrackingCategoryOption>

Create a new option on an existing Xero tracking category.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |
| Tracking Category (`trackingCategoryId`) | text | The tracking category to add the new option to. |
| Option Name (`name`) | text | The name of the new tracking category option (e.g. a Teamwork project name). |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Tracking Option ID (`TrackingOptionID`) | string | - |
| `Name` | string | - |
| `Status` | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.CreateTrackingCategoryOption",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new option on an existing Xero tracking category.",
  "private": false,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.settings"
    ]
  },
  "quota": {
    "manager": "appmixer:xero:accounting",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "trackingCategoryId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "tenantId",
          "trackingCategoryId",
          "name"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "trackingCategoryId": {
            "type": "text",
            "label": "Tracking Category",
            "index": 2,
            "tooltip": "The tracking category to add the new option to.",
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTrackingCategories?outPort=trackingCategories",
              "data": {
                "properties": {
                  "isSource": true
                },
                "messages": {
                  "in/tenantId": "inputs/in/tenantId"
                },
                "transform": "./transformers#categoriesToSelectArray"
              }
            }
          },
          "name": {
            "type": "text",
            "label": "Option Name",
            "index": 3,
            "tooltip": "The name of the new tracking category option (e.g. a Teamwork project name)."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Tracking Option ID",
          "value": "TrackingOptionID",
          "schema": {
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          }
        },
        {
          "label": "Name",
          "value": "Name",
          "schema": {
            "type": "string",
            "example": "My Project"
          }
        },
        {
          "label": "Status",
          "value": "Status",
          "schema": {
            "type": "string",
            "example": "ACTIVE"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
