# Update a workflow Endpoint: PATCH /scripting/workflows/{id} Version: 8.1.0 ## Path parameters: - `id` (integer, required) The workflow's id to update ## Header parameters: - `X-Key` (string, required) A unique API key used to authenticate requests to the NP6 platform. This key must be included in every API call to validate the identity and permissions of the client. Keep your API key secure and do not expose it in public code or logs. ## Response 200 fields (application/json): - `id` (integer) The workflow's id - `name` (string) The workflow's name - `description` (string) The workflow's description - `state` (integer) The workflow's State Enum: 0, 1 - `creationDate` (string) The workflow's creation date - `updateDate` (string) The workflow's creation date - `scripting` (object) The workflow's script settings - `scripting.version` (string) - `settings` (object) The workflow's settings - `listeners` (array) The workflow's listeners - `listeners.id` (string) The listener's id - `listeners.name` (string) The listener's name - `listeners.description` (string) The listener's description - `listeners.event` (object) The listener's event - `listeners.event.type` (string) - `listeners.handler` (string) The listener's node handler - `capping` (array) The workflow's capping definition - `capping.key` (object) The key used to store incremental value - `capping.increment` (integer) The value used to increment key value - `capping.threshold` (integer) The threshold used to handle capping decision - `capping.period` (object) The period used to handle capping decision - `capping.nodes` (array) the id of the workflow nodes to cap - `nodes` (array) The workflow's nodes - `tasks` (array) The workflows's scheduler tasks - `tasks.id` (string) Id of the task - `tasks.name` (string) Name of the task - `tasks.description` (string) Description of the task - `tasks.schedulers` (array) The schedulers of the task - `tasks.provider` (object) The data provider of the task - `tasks.handler` (string) The task's node handler ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields ## Response 411 fields