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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_type": "<entity_type>",
"bundle": "<bundle>",
"id": "<id>"
},
"name": "set_archived"
}
}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 | |||