Update workflow
Update a workflow and create a new version
Path Parameters
- workflow_id string required
Workflow identifier
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
- application/json
Request Body required
Workflow update request
- name string
Possible values:
non-emptyand<= 255 charactersNew workflow name
- description string
Possible values:
<= 1000 charactersNew workflow description
data_input_config object
oneOf- MOD1
type string requiredPossible values: [
detection]Data input type discriminator
scim_filter string requiredPossible values:
non-emptySCIM filter string to apply when querying detections. Examples:
severity eq "critical"type eq "aws_identity_unused" and status eq "new"entity_type eq "aws_iam_user"severity eq "critical" or severity eq "high"
limit integerPossible values:
<= 10000Maximum number of detections to retrieve (0 for no limit)
sorting object[]
Sorting configuration for results
field string requiredField to sort by
direction string requiredPossible values: [
asc,desc]Default value:
descSort direction
actions object
Updated actions configuration. Map of action ID to action configuration.
discriminatorPossible values: [
remediation,ticket,data_sink,webhook,notification]oneOf- starting_actions string[]
IDs of actions to execute first after data input completes. Enables tree-based execution where only these actions start initially, and child actions are triggered via the children field.
- 200
- 400
- 404
Workflow updated successfully
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage stringresult object
id stringUnique workflow identifier
org_id stringOrganization ID
name stringPossible values:
non-emptyand<= 255 charactersWorkflow name
description stringPossible values:
<= 1000 charactersWorkflow description
status stringPossible values: [
draft,active,paused,deleted]Current state of a workflow
created_by stringUser ID who created the workflow
created_at date-timeWorkflow creation timestamp
updated_by stringUser ID who last updated the workflow
updated_at date-timeLast update timestamp
activated_at date-timeWhen workflow was first activated
paused_at date-timeWhen workflow was paused
last_executed_at date-timeLast execution timestamp
execution_count integerTotal execution count
success_count integerSuccessful execution count
failure_count integerFailed execution count
latest_configuration_id stringID of the latest configuration version
latest_configuration_version integerLatest configuration version number
workflow_id stringParent workflow ID
version integerPossible values:
>= 1Configuration version number
data_input_config object
oneOf- MOD1
type stringPossible values: [
detection]Data input type discriminator
scim_filter stringPossible values:
non-emptySCIM filter string to apply when querying detections. Examples:
severity eq "critical"type eq "aws_identity_unused" and status eq "new"entity_type eq "aws_iam_user"severity eq "critical" or severity eq "high"
limit integerPossible values:
<= 10000Maximum number of detections to retrieve (0 for no limit)
sorting object[]
Sorting configuration for results
field stringField to sort by
direction stringPossible values: [
asc,desc]Default value:
descSort direction
actions object
Actions configuration. Map of action ID to action configuration.
discriminatorPossible values: [
remediation,ticket,data_sink,webhook,notification]oneOfstarting_actions string[]IDs of actions to execute first (after data input).
is_latest booleanWhether this is the latest version
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
],
"result": {
"id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"status": "draft",
"created_by": "string",
"created_at": "2005-12-24T18:29:30.033157Z",
"updated_by": "string",
"updated_at": "2005-12-24T18:29:30.033157Z",
"activated_at": "2005-12-24T18:29:30.033157Z",
"paused_at": "2005-12-24T18:29:30.033157Z",
"last_executed_at": "2005-12-24T18:29:30.033157Z",
"execution_count": 0,
"success_count": 0,
"failure_count": 0,
"latest_configuration_id": "string",
"latest_configuration_version": 0,
"workflow_id": "string",
"version": 0,
"data_input_config": {
"type": "detection",
"scim_filter": "string",
"limit": 0,
"sorting": [
{
"field": "string",
"direction": "desc"
}
]
},
"actions": {},
"starting_actions": [
"string"
],
"is_latest": true
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}