> 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/link/_save.md).

# \_save

Creates a new Link, or updates an already existing one.

### Parameters

#### id

The ID of the Link. If the ID already exists, the corresponding Link will be updated. If not, a new Link will be created.

#### name

The name of the Link.

#### url

The URL of the Link.

### Example

```
FM_api('Link_save', ['id' => '123456', 'name' => 'FieldMotion', 'url' => 'fieldmotion.com']);
```

### Result

#### On Success

Nothing.

#### On Not Logged In

```
{'error':'Not logged in!'}
```
