Change a workflow (Nomid staff)
update_workflowNomid staff only (Nomid system admins; refused for everyone else). Changes one workflow of a company, by its uuid from read_workflows; company names the company as in read_workflows. Only what you give changes: enabled alone turns it off (false) or on (true), and is the way to stop a workflow; trigger replaces the trigger; action replaces the whole action, params included. read_workflows never shows the saved password, so to change other params and keep it, give action without params.password and keepPassword true.Actions: force-password-on-enrollment sets params.password as the screen lock of a device right after it enrolls (within params.secondsAfterEnrollment, default 300); changed-to-policy sets it when a device moves from a policy whose path name contains params.previousPolicyPathNameContains to one containing params.currentPolicyPathNameContains; sim-changed tags a device sim-changed or sim-removed. Conditions compare text (policy path names, the status name, the device path name) and all must match; with none, the workflow runs on every enrolled device of the company. For force-password-on-enrollment, name the policy a device enrolls into with policyPathNameChangingTo (it has no policyPathName yet). params.password needs 6 characters or more, because Android 14 and later refuse a shorter PIN; params.shortPasswordAcknowledged true accepts a shorter one only for a fleet that will never run Android 14. Unknown keys, fields, action keys and params are refused. This changes a real fleet with no approval step in Nomid: show the user the workflow you will write (without repeating the PIN back if they did not ask) and get an explicit yes first. The answer shows the saved workflow without its password.
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": {
"uuid": "<uuid>"
},
"name": "update_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name, at most 20 characters. | |
| uuid | Yes | The workflow's uuid, from read_workflows. | |
| action | No | What the workflow does: the actions to run and the params they read. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| enabled | No | false stops it from running; true runs it again. | |
| trigger | No | When the workflow runs: on every status report of a device in the company whose conditions all match. | |
| keepPassword | No | With action: keep the saved params.password instead of giving one. |