> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/marketingsource/_new.md).

# \_new

Creates a new Marketing Source

### Parameter

#### name

The name for the created Marketing Source

### Example

```
FM_api(
    'MarketingSource_new',[
      'name' => 'Test Source'
    ]
);
```

### Results

#### On Success

```
{"ok":1}
```

#### On Failure

If the "name" parameter is not set

```
{"error":"missing or invalid parameter: name"}
```
