set_archived
Archive or restore farmOS assets and plans by setting their archived state, using the archived boolean in farmOS 4 or the status field in farmOS 3.
Instructions
Archive or restore an asset or plan. In farmOS 4 this sets the 'archived' boolean (assets no longer have a status). On farmOS 3 it falls back to the status field. Requires writes to be enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record UUID | |
| bundle | Yes | Bundle, e.g. 'plant' | |
| archived | No | true to archive (hide), false to restore | |
| entity_type | Yes | 'asset' or 'plan' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||