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

# \_setIsArchived

Set the Archive status of a Stock item

### Parameters

#### id

Integer ID for the stock item.

#### is\_archived

Integer. 0 means that Stock item is not archived. Any other value means it is.

### Example

```
FM_api('Stock_setIsArchived',
	[
		'id'=>'7',
		'is_archived'=>'1'
	]
);
```

### Result

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