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

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

Update the title, nickname, language or folder of a survey. Empty fields are left unchanged.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Survey (`surveyId`) | text | The survey to update. Pick a survey, or type its Survey ID. |
| Title (`title`) | text | The new survey title. |
| Nickname (`nickname`) | text | The new survey nickname. |
| Language (`language`) | text | ISO 639-1 code of the survey language, for example `en`. |
| Folder ID (`folderId`) | text | Moves the survey to the folder with this ID. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.surveymonkey.core.UpdateSurvey",
  "label": "Update Survey",
  "description": "Update the title, nickname, language or folder of a survey. Empty fields are left unchanged.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:surveymonkey"
  },
  "quota": {
    "manager": "appmixer:surveymonkey",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "surveyId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "folderId": {
            "type": "string"
          }
        },
        "required": [
          "surveyId"
        ]
      },
      "inspector": {
        "inputs": {
          "surveyId": {
            "type": "text",
            "index": 1,
            "label": "Survey",
            "tooltip": "The survey to update. Pick a survey, or type its Survey ID.",
            "source": {
              "url": "/component/appmixer/surveymonkey/core/ListSurveys?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./ListSurveys#toSelectArray"
              }
            }
          },
          "title": {
            "type": "text",
            "index": 2,
            "label": "Title",
            "tooltip": "The new survey title."
          },
          "nickname": {
            "type": "text",
            "index": 3,
            "label": "Nickname",
            "tooltip": "The new survey nickname."
          },
          "language": {
            "type": "text",
            "index": 4,
            "label": "Language",
            "tooltip": "ISO 639-1 code of the survey language, for example <code>en</code>."
          },
          "folderId": {
            "type": "text",
            "index": 5,
            "label": "Folder ID",
            "tooltip": "Moves the survey to the folder with this ID."
          }
        }
      }
    }
  ],
  "outPorts": [
    "out"
  ],
  "icon": "(data URI omitted)"
}
```
