<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchActions](./x-components.searchactions.md) &gt; [saveOrigin](./x-components.searchactions.saveorigin.md)

## SearchActions.saveOrigin() method

Creates a [QueryOrigin](./x-components.queryorigin.md) and saves it.

**Signature:**

```typescript
saveOrigin(originInit: QueryOriginInit): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  originInit | [QueryOriginInit](./x-components.queryorigininit.md) | The object to create the origin with. |

**Returns:**

void

