> 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/stock/_supplierset.md).

# \_supplierSet

Set Supplier

### Parameters

#### id

Integer. ID of the stock item to update

#### supplier\_id

Integer. ID of the supplier

### Example

```
FM_api('Stock_supplierSet',
	[
		'id'=>'1',
		'supplier_id'=>'55'
	]
);
```

### Result

#### On Success

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

#### On Failure

If no stock ID provided

```
{"error":"no stock id provided"}
```
