> 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 Person

- Component: `appmixer.superoffice.core.UpdatePerson`
- 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.UpdatePerson>

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

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Person ID (`personId`) | text | The ID of the person. Use Find Persons to look it up. |
| Company ID (`companyId`) | text | Move the person to this company. Use Find Companies to look it up. |
| First Name (`firstName`) | text | - |
| Last Name (`lastName`) | text | - |
| Title (`title`) | text | Job title, e.g. Head of Purchasing. |
| Position (`positionId`) | text | Pick a position, or type its ID. |
| Email (`email`) | text | Replaces the first email address of the person. |
| Mobile Phone (`mobilePhone`) | text | Replaces the first mobile phone number. |
| Office Phone (`officePhone`) | text | Replaces the first office phone number. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.superoffice.core.UpdatePerson",
  "label": "Update Person",
  "description": "Update a person. 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": {
          "personId": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "positionId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "mobilePhone": {
            "type": "string"
          },
          "officePhone": {
            "type": "string"
          }
        },
        "required": [
          "personId"
        ]
      },
      "inspector": {
        "inputs": {
          "personId": {
            "type": "text",
            "index": 1,
            "label": "Person ID",
            "tooltip": "The ID of the person. Use Find Persons to look it up."
          },
          "companyId": {
            "type": "text",
            "index": 2,
            "label": "Company ID",
            "tooltip": "Move the person to this company. Use Find Companies to look it up."
          },
          "firstName": {
            "type": "text",
            "index": 3,
            "label": "First Name"
          },
          "lastName": {
            "type": "text",
            "index": 4,
            "label": "Last Name"
          },
          "title": {
            "type": "text",
            "index": 5,
            "label": "Title",
            "tooltip": "Job title, e.g. Head of Purchasing."
          },
          "positionId": {
            "type": "text",
            "index": 6,
            "label": "Position",
            "tooltip": "Pick a position, or type its ID.",
            "source": {
              "url": "/component/appmixer/superoffice/core/ListListItems?outPort=out",
              "data": {
                "properties": {
                  "isSource": true,
                  "listName": "Position"
                },
                "transform": "./ListListItems#toSelectArray"
              }
            }
          },
          "email": {
            "type": "text",
            "index": 7,
            "label": "Email",
            "tooltip": "Replaces the first email address of the person."
          },
          "mobilePhone": {
            "type": "text",
            "index": 8,
            "label": "Mobile Phone",
            "tooltip": "Replaces the first mobile phone number."
          },
          "officePhone": {
            "type": "text",
            "index": 9,
            "label": "Office Phone",
            "tooltip": "Replaces the first office phone number."
          }
        }
      }
    }
  ],
  "outPorts": [
    "out"
  ],
  "icon": "(data URI omitted)"
}
```
