# \_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"}
```
