> 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.facebookbusiness.marketing.UpdateAudience

- Component: `appmixer.facebookbusiness.marketing.UpdateAudience`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.facebookbusiness 3.1.3](https://connectors.appmixer.com/connector/appmixer.facebookbusiness/3.1.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.facebookbusiness/3.1.3/component/appmixer.facebookbusiness.marketing.UpdateAudience>

Update an existing custom audience.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Account ID (`accountId`) | select | Enter your Ad Account ID. |
| Custom Audience ID (`audienceId`) | select | Enter your Custom Audience ID. |
| Audience Name (`name`) | text | Enter your new Audience name. |
| Audience Description (`description`) | textarea | Enter your new Audience description. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Audience ID (`id`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.facebookbusiness.marketing.UpdateAudience",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Update an existing custom audience.",
  "auth": {
    "service": "appmixer:facebookbusiness",
    "scope": [
      "ads_management"
    ]
  },
  "quota": {
    "manager": "appmixer:facebookbusiness",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          },
          "audienceId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "audienceId"
        ]
      },
      "inspector": {
        "inputs": {
          "accountId": {
            "type": "select",
            "label": "Account ID",
            "index": 1,
            "tooltip": "Enter your Ad Account ID.",
            "source": {
              "url": "/component/appmixer/facebookbusiness/marketing/GetAdAccounts?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./GetAdAccounts#toSelectArray"
              }
            }
          },
          "audienceId": {
            "type": "select",
            "label": "Custom Audience ID",
            "index": 2,
            "tooltip": "Enter your Custom Audience ID.",
            "source": {
              "url": "/component/appmixer/facebookbusiness/marketing/GetCustomAudiences?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./GetCustomAudiences#toSelectArray",
                "messages": {
                  "in/accountId": "inputs/in/accountId"
                }
              }
            }
          },
          "name": {
            "type": "text",
            "label": "Audience Name",
            "index": 3,
            "tooltip": "Enter your new Audience name."
          },
          "description": {
            "type": "textarea",
            "label": "Audience Description",
            "index": 4,
            "tooltip": "Enter your new Audience description."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "value": "id",
          "label": "Audience ID",
          "schema": {
            "type": "string",
            "example": "23851234567890123"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
