> 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).

# Update Company

- Component: `appmixer.superoffice.core.UpdateCompany`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.superoffice 1.2.0](https://connectors.appmixer.com/connector/appmixer.superoffice/1.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.superoffice/1.2.0/component/appmixer.superoffice.core.UpdateCompany>

Update a company. Only the fields you fill in are changed.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Company ID (`companyId`) | text | The ID of the company. Use Find Companies to look it up. |
| Name (`name`) | text | The company name. |
| Department (`department`) | text | The department of the company. |
| Organization Number (`orgNr`) | text | The organization (VAT) number. |
| Category (`categoryId`) | text | Pick a category, or type its ID. |
| Business (`businessId`) | text | Pick a business, or type its ID. |
| Country (`countryId`) | text | Pick a country, or type its ID. |
| Email (`email`) | text | Replaces the first email address of the company. |
| Phone (`phone`) | text | Replaces the first phone number of the company. |
| Website (`website`) | text | Replaces the first website of the company. |
| Description (`description`) | textarea | Free text about the company. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.superoffice.core.UpdateCompany",
  "label": "Update Company",
  "description": "Update a company. Only the fields you fill in are changed.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:superoffice"
  },
  "quota": {
    "manager": "appmixer:superoffice",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "department": {
            "type": "string"
          },
          "orgNr": {
            "type": "string"
          },
          "categoryId": {
            "type": "string"
          },
          "businessId": {
            "type": "string"
          },
          "countryId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "companyId"
        ]
      },
      "inspector": {
        "inputs": {
          "companyId": {
            "type": "text",
            "index": 1,
            "label": "Company ID",
            "tooltip": "The ID of the company. Use Find Companies to look it up."
          },
          "name": {
            "type": "text",
            "index": 2,
            "label": "Name",
            "tooltip": "The company name."
          },
          "department": {
            "type": "text",
            "index": 3,
            "label": "Department",
            "tooltip": "The department of the company."
          },
          "orgNr": {
            "type": "text",
            "index": 4,
            "label": "Organization Number",
            "tooltip": "The organization (VAT) number."
          },
          "categoryId": {
            "type": "text",
            "index": 5,
            "label": "Category",
            "tooltip": "Pick a category, or type its ID.",
            "source": {
              "url": "/component/appmixer/superoffice/core/ListListItems?outPort=out",
              "data": {
                "properties": {
                  "isSource": true,
                  "listName": "Category"
                },
                "transform": "./ListListItems#toSelectArray"
              }
            }
          },
          "businessId": {
            "type": "text",
            "index": 6,
            "label": "Business",
            "tooltip": "Pick a business, or type its ID.",
            "source": {
              "url": "/component/appmixer/superoffice/core/ListListItems?outPort=out",
              "data": {
                "properties": {
                  "isSource": true,
                  "listName": "Business"
                },
                "transform": "./ListListItems#toSelectArray"
              }
            }
          },
          "countryId": {
            "type": "text",
            "index": 7,
            "label": "Country",
            "tooltip": "Pick a country, or type its ID.",
            "source": {
              "url": "/component/appmixer/superoffice/core/ListListItems?outPort=out",
              "data": {
                "properties": {
                  "isSource": true,
                  "listName": "Country"
                },
                "transform": "./ListListItems#toSelectArray"
              }
            }
          },
          "email": {
            "type": "text",
            "index": 8,
            "label": "Email",
            "tooltip": "Replaces the first email address of the company."
          },
          "phone": {
            "type": "text",
            "index": 9,
            "label": "Phone",
            "tooltip": "Replaces the first phone number of the company."
          },
          "website": {
            "type": "text",
            "index": 10,
            "label": "Website",
            "tooltip": "Replaces the first website of the company."
          },
          "description": {
            "type": "textarea",
            "index": 11,
            "label": "Description",
            "tooltip": "Free text about the company."
          }
        }
      }
    }
  ],
  "outPorts": [
    "out"
  ],
  "icon": "(data URI omitted)"
}
```
