---
title: "Create an external data component"
method: POST
path: "/builder/externaldatacomponent"
tags: ["Builder external data component"]
---

# Create an external data component

`POST /builder/externaldatacomponent`

## Request body

- PersonalMerchandisingExternalDataComponentCreateModel — Model used to create a external data component with.
  - `Name` string — Name of the component
  - `Url` string — Source url for the external component data
  - `RequestType` 'GET' | 'POST' — Request type that the call should be to the url
  - `AttributeId` integer — Id of the tweakwise attribute
  - `JsonMapping` string — Mapping in Json between external url attributes and tweakwise attributes
  - `Icon` 'Bag' | 'BoxHeart' | 'Brand' | 'BrandHeart' | 'Diamond' | 'Eye' | 'EyePlus' | 'Fire' | 'Heart' | 'LabelNew' | 'New' | 'Person' | 'PersonHeart' | 'Repeat' | 'Star' | 'Stars' | 'Top' | 'Trending' | 'Basket' | 'BasketPlus' | 'Label' | 'AIPersonal' — Tweakwise icon that will be used for the component
  - `AuthorizationId` integer — Id of the authorization
  - `RequestTimeoutMs` integer — Maximum requesttime in milliseconds before timeout
  - `PostBodyMapping` string — POST requestbody payload mapping

## Response `200`

Id of the created external data component

- integer

## Other responses

- `400` — BadRequest

---

[API](https://skmtc.net/tweakwise/apis/frontend-api.md) · [All operations](https://skmtc.net/tweakwise/apis/frontend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tweakwise/frontend-api/revisions/9bd1e2b3633f/schema)
