All pages
Powered by GitBook
1 of 1

Loading...

Smart Action Definitions

Define filter-based actions that reviewers can apply to certifications results with a matching attribute or status.

Reviewers can view and apply custom actions from the Review interface by clicking Smart Action > Prepared Actions.

  • Add smart action definition

    • Mutable fields and mutable filters

Create a smart action definition, globally or for a single Workflow.

A certification includes all source and destination node properties discovered or added by Veza. You can specify a SCIM filter to select the results to affect, for example:

Example request:

The filter can apply to any source or destination node property.

When apply_to_all_rows is true and no other filter criteria is specified, the action will run on all certification results.

Mutable fields contain result attributes that are not sourced from Access Graph metadata. Use mutable_fields to apply changes to a result, and mutable_filter to filter results based on decision or sign-off state:

Mutable field
Value

Delete a prepared action by definition id.

Returns an array of smart action definitions. By default, this endpoint lists all definitions. If a workflow_id is specified, only definitions for that workflow are included in the response.

Alter a smart action definition by specifying the id and an array of values to change.

curl -X POST "https://{{veza_url}}/api/preview/awf/smart_action_definitions" \
-H 'authorization: Bearer {{access_token}}' \
-d '{
  "apply_to_all_rows": "false",
  "description": "Reject users where the user `is active` value is not `true`",
  "filter": "source.is_active ne \"true\"",
  "mutable_fields": {
    "decision": "RESULT_DECISION_REJECTED"
  },
  "mutable_filter": "",
  "name": "Reject inactive users",
  "workflow_id": ""
}'
{
  "apply_to_all_rows": "false",
  "description": "Sign off on all rejected rows",
  "filter": "",
  "mutable_fields": {
    "signed_off_state": "SIGNED_OFF"
  },
  "mutable_filter": "decision eq \"RESULT_DECISION_REJECTED\"",
  "name": "Sign off rejected rows",
  "workflow_id": ""
}

decision

One of: "RESULT_DECISION_UNKNOWN" "RESULT_DECISION_NONE" "RESULT_DECISION_ACCEPTED" "RESULT_DECISION_REJECTED" "RESULT_DECISION_FIXED"

notes

string

signed_off_state

One of: "UNKNOWN" "NOT_SIGNED_OFF" "SIGNED_OFF"

Add smart action definition

Mutable fields and mutable filters

Remove a smart action definition

List smart action definitions

Update a smart action definition

Remove a smart action definition
List smart action definitions
Update a smart action definition
result
post
Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Body
namestringOptional
descriptionstringOptional
workflow_idstringOptional

empty workflow_id would mean that the smartAction can be used for any workflowId

filterstringOptional
decisioninteger · enumOptional
notesstringOptional
updated_atstring · date-timeOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
notification_typeinteger · enumOptional
webhook_typeinteger · enumOptional
statusinteger · enumOptional
error_messagestringOptional
updated_atstring · date-timeOptional
ticket_numberstringOptional
sys_idstringOptional
infostringOptional
keysstring[]Optional
slack_app_infoobject · NotificationResponseInfo_SlackAppInfoOptional
notification_idstringOptional

Which configured notification produced this entry. notification_type alone cannot attribute it: a review may bind two ServiceNow actions to one event. Empty for entries predating this field.

triggered_atstring · date-timeOptional

The row update this was sent for, as opposed to updated_at, when it was sent. Read back by the per-row job to tell its own sends from earlier ones on the row. Empty outside row actions.

action_namestringOptional

The row event this was sent for, e.g. REJECTED. One bulk update can put a row into two event buckets sharing one triggered_at -- rejecting with a note raises REJECTED and EDIT_NOTES -- and a review may bind one notification to both. Without this, the per-row job's skip cannot tell the second event's send from the first's and drops it. Empty outside row actions.

notification_statusinteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
signed_off_stateinteger · enumOptional
signed_off_atstring · date-timeOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
actioninteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
timestring · date-timeOptional
notestringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
reasoninteger · enumOptional
decisioninteger · enumOptional
notestringOptional
previous_decisioninteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
reasoninteger · enumOptional
note_outcomeinteger · enumOptional

What clearing the decision did to the row's note.

request_idstringOptional
approval_levelinteger · enumOptional
users_managerbooleanOptional

Assigns the manager of each row's identity as a reviewer, found through the global identity provider (IdP) settings, which must be enabled. Assigns at most one manager per row.

resource_managersbooleanOptional

Assigns the owner of whichever entity is being reviewed as a reviewer. Despite the field name (kept for wire/backward-compat reasons - see resource_owner_lookup_order), this is not restricted to graph nodes labeled "Resource" in the schema: it resolves the tagged owner (entity owners property, or the legacy resource-manager tag) of whichever side of the query result actually has one, trying resource_owner_lookup_order's preferred side first.

user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
itemsinteger · enumOptionalPossible values:
previous_review_assignmentbooleanOptional

Assign reviewer(s) from the comparable row (matched by principal.type/id + resource.type/id) in the prior review. New rows fall through. Creation-only.

assign_selfbooleanOptional

Assign reviewer to be the same as the row subject.

resource_owner_lookup_orderinteger · enumOptional

Controls which side of the query resource_managers tries first when resolving an owner, when the query has both a principal and a resource node; if that side has no tagged owner, the other side is tried. Has no effect unless resource_managers is set.

Example: 0Possible values:
current_reviewers_managersbooleanOptional

Assign the managers of each row's current reviewers. Only supported in OverdueReassignSettings.targets; rejected for review creation, schedules and reviewer updates. Not the same as reviewers_managers_for_approval_levels, which uses an earlier approval level's reviewers when a review is created.

automation_run_idsstring[]Optional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
decision_atstring · date-timeOptional
idstringOptional
stateinteger · enumOptional
error_messagestringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
question_idstringOptional
answer_idstringOptional
answer_textstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
responded_atstring · date-timeRead-onlyOptional
is_assigned_to_current_userbooleanOptional
suggestioninteger · enumOptional
reason_codesstring[]Optional
cohort_idstringOptional
cohort_indexinteger · uint32Optional
itsm_request_numberstringOptional
itsm_request_statusstringOptional
itsm_request_urlstringOptional
itsm_request_last_updated_atstring · date-timeOptional
rest_action_idstringOptional
statusinteger · enumOptional
error_messagestringOptional
updated_atstring · date-timeOptional
response_bodystringOptional

Raw response body, truncated. The endpoint belongs to the customer, so the shape is unknown and the whole body is kept rather than parsed.

response_truncatedbooleanOptional

Set when the body was longer than the retained limit.

do_not_retrybooleanOptional

Set when the endpoint refused the request in a way retrying cannot fix, so the row is not attempted again for this action. Left false for anything that might succeed later.

mutable_filterstringOptional
apply_to_all_rowsbooleanOptional
Responses
200

OK

application/json
idstringOptional
default

Default error response

application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

codeinteger · int32Optional

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

messagestringOptional

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

@typestringOptional

The type of the serialized message.

Other propertiesanyOptional
post/api/preview/awf/smart_action_definitions
POST /api/preview/awf/smart_action_definitions HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 3046

{
  "name": "text",
  "description": "text",
  "workflow_id": "text",
  "filter": "text",
  "mutable_fields": {
    "decision": 1,
    "notes": "text",
    "updated_at": "2026-01-01T00:00:00.000Z",
    "updated_by": {
      "user_type": "text",
      "id": "text",
      "email": "text",
      "name": "text",
      "alternate_email": "text"
    },
    "notification_infos": {
      "values": [
        {
          "notification_type": 1,
          "webhook_type": 1,
          "status": 1,
          "error_message": "text",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "snow_info": {
            "ticket_number": "text",
            "sys_id": "text"
          },
          "webhook_info": {
            "info": "text"
          },
          "jira_info": {
            "keys": [
              "text"
            ]
          },
          "slack_app_info": {},
          "notification_id": "text",
          "triggered_at": "2026-01-01T00:00:00.000Z",
          "action_name": "text"
        }
      ]
    },
    "notification_status": 1,
    "reviewers": [
      {
        "user_type": "text",
        "id": "text",
        "email": "text",
        "name": "text",
        "alternate_email": "text"
      }
    ],
    "signed_off_state": 1,
    "signed_off_at": "2026-01-01T00:00:00.000Z",
    "signed_off_by": {
      "user_type": "text",
      "id": "text",
      "email": "text",
      "name": "text",
      "alternate_email": "text"
    },
    "action_log": {
      "entries": [
        {
          "action": 1,
          "user": {
            "user_type": "text",
            "id": "text",
            "email": "text",
            "name": "text",
            "alternate_email": "text"
          },
          "time": "2026-01-01T00:00:00.000Z",
          "note": "text",
          "reviewer_detail": {
            "old_reviewers": [
              {
                "user_type": "text",
                "id": "text",
                "email": "text",
                "name": "text",
                "alternate_email": "text"
              }
            ],
            "new_reviewers": [
              {
                "user_type": "text",
                "id": "text",
                "email": "text",
                "name": "text",
                "alternate_email": "text"
              }
            ],
            "reason": 1
          },
          "decision_detail": {
            "decision": 1,
            "note": "text"
          },
          "decision_cleared_detail": {
            "previous_decision": 1,
            "original_decider": {
              "user_type": "text",
              "id": "text",
              "email": "text",
              "name": "text",
              "alternate_email": "text"
            },
            "reason": 1,
            "note_outcome": 1
          },
          "revocation_request_detail": {
            "request_id": "text"
          },
          "approval_level": 1
        }
      ]
    },
    "reviewer_assignment": {
      "users_manager": true,
      "resource_managers": true,
      "reviewers": [
        {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        }
      ],
      "fallback_reviewers": [
        {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        }
      ],
      "reviewers_managers_for_approval_levels": [
        0
      ],
      "previous_review_assignment": true,
      "assign_self": true,
      "resource_owner_lookup_order": 0,
      "current_reviewers_managers": true
    },
    "automation_run_ids": [
      "text"
    ],
    "decision_by": {
      "user_type": "text",
      "id": "text",
      "email": "text",
      "name": "text",
      "alternate_email": "text"
    },
    "decision_at": "2026-01-01T00:00:00.000Z",
    "revoke_request_infos": [
      {
        "id": "text",
        "state": 1,
        "error_message": "text"
      }
    ],
    "old_reviewers": [
      {
        "user_type": "text",
        "id": "text",
        "email": "text",
        "name": "text",
        "alternate_email": "text"
      }
    ],
    "predefined_question_response": [
      {
        "question_id": "text",
        "answer_id": "text",
        "answer_text": "text"
      }
    ],
    "is_assigned_to_current_user": true,
    "ai_suggestion": {
      "suggestion": 1,
      "reason_codes": [
        "text"
      ],
      "cohort_id": "text",
      "cohort_index": 1
    },
    "itsm_request_number": "text",
    "itsm_request_status": "text",
    "itsm_request_url": "text",
    "itsm_request_last_updated_at": "2026-01-01T00:00:00.000Z",
    "rest_action_infos": [
      {
        "rest_action_id": "text",
        "status": 1,
        "error_message": "text",
        "updated_at": "2026-01-01T00:00:00.000Z",
        "response_body": "text",
        "response_truncated": true,
        "do_not_retry": true
      }
    ]
  },
  "mutable_filter": "text",
  "apply_to_all_rows": true
}
{
  "id": "text"
}
delete
Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Path parameters
idstringRequired
Responses
200

OK

application/json
object · RemoveAwfSmartActionDefinitionResponseOptional
default

Default error response

application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

codeinteger · int32Optional

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

messagestringOptional

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

@typestringOptional

The type of the serialized message.

Other propertiesanyOptional
delete/api/preview/awf/smart_action_definitions/{id}
DELETE /api/preview/awf/smart_action_definitions/{id} HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{}
get
Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Query parameters
workflow_idstringOptional

If no value is passed for workflow_id, all smart actions will be returned. If workflow_id is not "", smart actions with a matching workflow_id or with an empty workflow_id will be returned.

Responses
200

OK

application/json
idstringOptional
descriptionstringOptional
namestringOptional
workflow_idstringOptional

empty workflow_id would mean that the smartAction can be used for any workflowId

filterstringOptional
decisioninteger · enumOptional
notesstringOptional
updated_atstring · date-timeOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
notification_typeinteger · enumOptional
webhook_typeinteger · enumOptional
statusinteger · enumOptional
error_messagestringOptional
updated_atstring · date-timeOptional
ticket_numberstringOptional
sys_idstringOptional
infostringOptional
keysstring[]Optional
slack_app_infoobject · NotificationResponseInfo_SlackAppInfoOptional
notification_idstringOptional

Which configured notification produced this entry. notification_type alone cannot attribute it: a review may bind two ServiceNow actions to one event. Empty for entries predating this field.

triggered_atstring · date-timeOptional

The row update this was sent for, as opposed to updated_at, when it was sent. Read back by the per-row job to tell its own sends from earlier ones on the row. Empty outside row actions.

action_namestringOptional

The row event this was sent for, e.g. REJECTED. One bulk update can put a row into two event buckets sharing one triggered_at -- rejecting with a note raises REJECTED and EDIT_NOTES -- and a review may bind one notification to both. Without this, the per-row job's skip cannot tell the second event's send from the first's and drops it. Empty outside row actions.

notification_statusinteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
signed_off_stateinteger · enumOptional
signed_off_atstring · date-timeOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
actioninteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
timestring · date-timeOptional
notestringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
reasoninteger · enumOptional
decisioninteger · enumOptional
notestringOptional
previous_decisioninteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
reasoninteger · enumOptional
note_outcomeinteger · enumOptional

What clearing the decision did to the row's note.

request_idstringOptional
approval_levelinteger · enumOptional
users_managerbooleanOptional

Assigns the manager of each row's identity as a reviewer, found through the global identity provider (IdP) settings, which must be enabled. Assigns at most one manager per row.

resource_managersbooleanOptional

Assigns the owner of whichever entity is being reviewed as a reviewer. Despite the field name (kept for wire/backward-compat reasons - see resource_owner_lookup_order), this is not restricted to graph nodes labeled "Resource" in the schema: it resolves the tagged owner (entity owners property, or the legacy resource-manager tag) of whichever side of the query result actually has one, trying resource_owner_lookup_order's preferred side first.

user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
itemsinteger · enumOptionalPossible values:
previous_review_assignmentbooleanOptional

Assign reviewer(s) from the comparable row (matched by principal.type/id + resource.type/id) in the prior review. New rows fall through. Creation-only.

assign_selfbooleanOptional

Assign reviewer to be the same as the row subject.

resource_owner_lookup_orderinteger · enumOptional

Controls which side of the query resource_managers tries first when resolving an owner, when the query has both a principal and a resource node; if that side has no tagged owner, the other side is tried. Has no effect unless resource_managers is set.

Example: 0Possible values:
current_reviewers_managersbooleanOptional

Assign the managers of each row's current reviewers. Only supported in OverdueReassignSettings.targets; rejected for review creation, schedules and reviewer updates. Not the same as reviewers_managers_for_approval_levels, which uses an earlier approval level's reviewers when a review is created.

automation_run_idsstring[]Optional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
decision_atstring · date-timeOptional
idstringOptional
stateinteger · enumOptional
error_messagestringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
question_idstringOptional
answer_idstringOptional
answer_textstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
responded_atstring · date-timeRead-onlyOptional
is_assigned_to_current_userbooleanOptional
suggestioninteger · enumOptional
reason_codesstring[]Optional
cohort_idstringOptional
cohort_indexinteger · uint32Optional
itsm_request_numberstringOptional
itsm_request_statusstringOptional
itsm_request_urlstringOptional
itsm_request_last_updated_atstring · date-timeOptional
rest_action_idstringOptional
statusinteger · enumOptional
error_messagestringOptional
updated_atstring · date-timeOptional
response_bodystringOptional

Raw response body, truncated. The endpoint belongs to the customer, so the shape is unknown and the whole body is kept rather than parsed.

response_truncatedbooleanOptional

Set when the body was longer than the retained limit.

do_not_retrybooleanOptional

Set when the endpoint refused the request in a way retrying cannot fix, so the row is not attempted again for this action. Left false for anything that might succeed later.

mutable_filterstringOptional
apply_to_all_rowsbooleanOptional
default

Default error response

application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

codeinteger · int32Optional

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

messagestringOptional

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

@typestringOptional

The type of the serialized message.

Other propertiesanyOptional
get/api/preview/awf/smart_action_definitions
GET /api/preview/awf/smart_action_definitions HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "values": [
    {
      "id": "text",
      "description": "text",
      "name": "text",
      "workflow_id": "text",
      "filter": "text",
      "mutable_fields": {
        "decision": 1,
        "notes": "text",
        "updated_at": "2026-01-01T00:00:00.000Z",
        "updated_by": {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        },
        "notification_infos": {
          "values": [
            {
              "notification_type": 1,
              "webhook_type": 1,
              "status": 1,
              "error_message": "text",
              "updated_at": "2026-01-01T00:00:00.000Z",
              "snow_info": {
                "ticket_number": "text",
                "sys_id": "text"
              },
              "webhook_info": {
                "info": "text"
              },
              "jira_info": {
                "keys": [
                  "text"
                ]
              },
              "slack_app_info": {},
              "notification_id": "text",
              "triggered_at": "2026-01-01T00:00:00.000Z",
              "action_name": "text"
            }
          ]
        },
        "notification_status": 1,
        "reviewers": [
          {
            "user_type": "text",
            "id": "text",
            "email": "text",
            "name": "text",
            "alternate_email": "text"
          }
        ],
        "signed_off_state": 1,
        "signed_off_at": "2026-01-01T00:00:00.000Z",
        "signed_off_by": {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        },
        "action_log": {
          "entries": [
            {
              "action": 1,
              "user": {
                "user_type": "text",
                "id": "text",
                "email": "text",
                "name": "text",
                "alternate_email": "text"
              },
              "time": "2026-01-01T00:00:00.000Z",
              "note": "text",
              "reviewer_detail": {
                "old_reviewers": [
                  {
                    "user_type": "text",
                    "id": "text",
                    "email": "text",
                    "name": "text",
                    "alternate_email": "text"
                  }
                ],
                "new_reviewers": [
                  {
                    "user_type": "text",
                    "id": "text",
                    "email": "text",
                    "name": "text",
                    "alternate_email": "text"
                  }
                ],
                "reason": 1
              },
              "decision_detail": {
                "decision": 1,
                "note": "text"
              },
              "decision_cleared_detail": {
                "previous_decision": 1,
                "original_decider": {
                  "user_type": "text",
                  "id": "text",
                  "email": "text",
                  "name": "text",
                  "alternate_email": "text"
                },
                "reason": 1,
                "note_outcome": 1
              },
              "revocation_request_detail": {
                "request_id": "text"
              },
              "approval_level": 1
            }
          ]
        },
        "reviewer_assignment": {
          "users_manager": true,
          "resource_managers": true,
          "reviewers": [
            {
              "user_type": "text",
              "id": "text",
              "email": "text",
              "name": "text",
              "alternate_email": "text"
            }
          ],
          "fallback_reviewers": [
            {
              "user_type": "text",
              "id": "text",
              "email": "text",
              "name": "text",
              "alternate_email": "text"
            }
          ],
          "reviewers_managers_for_approval_levels": [
            0
          ],
          "previous_review_assignment": true,
          "assign_self": true,
          "resource_owner_lookup_order": 0,
          "current_reviewers_managers": true
        },
        "automation_run_ids": [
          "text"
        ],
        "decision_by": {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        },
        "decision_at": "2026-01-01T00:00:00.000Z",
        "revoke_request_infos": [
          {
            "id": "text",
            "state": 1,
            "error_message": "text"
          }
        ],
        "old_reviewers": [
          {
            "user_type": "text",
            "id": "text",
            "email": "text",
            "name": "text",
            "alternate_email": "text"
          }
        ],
        "predefined_question_response": [
          {
            "question_id": "text",
            "answer_id": "text",
            "answer_text": "text",
            "respondent_user": {
              "user_type": "text",
              "id": "text",
              "email": "text",
              "name": "text",
              "alternate_email": "text"
            },
            "responded_at": "2026-01-01T00:00:00.000Z"
          }
        ],
        "is_assigned_to_current_user": true,
        "ai_suggestion": {
          "suggestion": 1,
          "reason_codes": [
            "text"
          ],
          "cohort_id": "text",
          "cohort_index": 1
        },
        "itsm_request_number": "text",
        "itsm_request_status": "text",
        "itsm_request_url": "text",
        "itsm_request_last_updated_at": "2026-01-01T00:00:00.000Z",
        "rest_action_infos": [
          {
            "rest_action_id": "text",
            "status": 1,
            "error_message": "text",
            "updated_at": "2026-01-01T00:00:00.000Z",
            "response_body": "text",
            "response_truncated": true,
            "do_not_retry": true
          }
        ]
      },
      "mutable_filter": "text",
      "apply_to_all_rows": true
    }
  ]
}
put
Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Body
idstringOptional
descriptionstringOptional
namestringOptional
workflow_idstringOptional

empty workflow_id would mean that the smartAction can be used for any workflowId

filterstringOptional
decisioninteger · enumOptional
notesstringOptional
updated_atstring · date-timeOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
notification_typeinteger · enumOptional
webhook_typeinteger · enumOptional
statusinteger · enumOptional
error_messagestringOptional
updated_atstring · date-timeOptional
ticket_numberstringOptional
sys_idstringOptional
infostringOptional
keysstring[]Optional
slack_app_infoobject · NotificationResponseInfo_SlackAppInfoOptional
notification_idstringOptional

Which configured notification produced this entry. notification_type alone cannot attribute it: a review may bind two ServiceNow actions to one event. Empty for entries predating this field.

triggered_atstring · date-timeOptional

The row update this was sent for, as opposed to updated_at, when it was sent. Read back by the per-row job to tell its own sends from earlier ones on the row. Empty outside row actions.

action_namestringOptional

The row event this was sent for, e.g. REJECTED. One bulk update can put a row into two event buckets sharing one triggered_at -- rejecting with a note raises REJECTED and EDIT_NOTES -- and a review may bind one notification to both. Without this, the per-row job's skip cannot tell the second event's send from the first's and drops it. Empty outside row actions.

notification_statusinteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
signed_off_stateinteger · enumOptional
signed_off_atstring · date-timeOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
actioninteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
timestring · date-timeOptional
notestringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
reasoninteger · enumOptional
decisioninteger · enumOptional
notestringOptional
previous_decisioninteger · enumOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
reasoninteger · enumOptional
note_outcomeinteger · enumOptional

What clearing the decision did to the row's note.

request_idstringOptional
approval_levelinteger · enumOptional
users_managerbooleanOptional

Assigns the manager of each row's identity as a reviewer, found through the global identity provider (IdP) settings, which must be enabled. Assigns at most one manager per row.

resource_managersbooleanOptional

Assigns the owner of whichever entity is being reviewed as a reviewer. Despite the field name (kept for wire/backward-compat reasons - see resource_owner_lookup_order), this is not restricted to graph nodes labeled "Resource" in the schema: it resolves the tagged owner (entity owners property, or the legacy resource-manager tag) of whichever side of the query result actually has one, trying resource_owner_lookup_order's preferred side first.

user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
itemsinteger · enumOptionalPossible values:
previous_review_assignmentbooleanOptional

Assign reviewer(s) from the comparable row (matched by principal.type/id + resource.type/id) in the prior review. New rows fall through. Creation-only.

assign_selfbooleanOptional

Assign reviewer to be the same as the row subject.

resource_owner_lookup_orderinteger · enumOptional

Controls which side of the query resource_managers tries first when resolving an owner, when the query has both a principal and a resource node; if that side has no tagged owner, the other side is tried. Has no effect unless resource_managers is set.

Example: 0Possible values:
current_reviewers_managersbooleanOptional

Assign the managers of each row's current reviewers. Only supported in OverdueReassignSettings.targets; rejected for review creation, schedules and reviewer updates. Not the same as reviewers_managers_for_approval_levels, which uses an earlier approval level's reviewers when a review is created.

automation_run_idsstring[]Optional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
decision_atstring · date-timeOptional
idstringOptional
stateinteger · enumOptional
error_messagestringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
question_idstringOptional
answer_idstringOptional
answer_textstringOptional
user_typestringOptional
idstringOptional
emailstringOptional
namestringOptional
alternate_emailstringOptional
responded_atstring · date-timeRead-onlyOptional
is_assigned_to_current_userbooleanOptional
suggestioninteger · enumOptional
reason_codesstring[]Optional
cohort_idstringOptional
cohort_indexinteger · uint32Optional
itsm_request_numberstringOptional
itsm_request_statusstringOptional
itsm_request_urlstringOptional
itsm_request_last_updated_atstring · date-timeOptional
rest_action_idstringOptional
statusinteger · enumOptional
error_messagestringOptional
updated_atstring · date-timeOptional
response_bodystringOptional

Raw response body, truncated. The endpoint belongs to the customer, so the shape is unknown and the whole body is kept rather than parsed.

response_truncatedbooleanOptional

Set when the body was longer than the retained limit.

do_not_retrybooleanOptional

Set when the endpoint refused the request in a way retrying cannot fix, so the row is not attempted again for this action. Left false for anything that might succeed later.

mutable_filterstringOptional
apply_to_all_rowsbooleanOptional
Responses
200

OK

application/json
object · UpdateAwfSmartActionDefinitionResponseOptional
default

Default error response

application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

codeinteger · int32Optional

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

messagestringOptional

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

@typestringOptional

The type of the serialized message.

Other propertiesanyOptional
put/api/preview/awf/smart_action_definitions
PUT /api/preview/awf/smart_action_definitions HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 3068

{
  "value": {
    "id": "text",
    "description": "text",
    "name": "text",
    "workflow_id": "text",
    "filter": "text",
    "mutable_fields": {
      "decision": 1,
      "notes": "text",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "updated_by": {
        "user_type": "text",
        "id": "text",
        "email": "text",
        "name": "text",
        "alternate_email": "text"
      },
      "notification_infos": {
        "values": [
          {
            "notification_type": 1,
            "webhook_type": 1,
            "status": 1,
            "error_message": "text",
            "updated_at": "2026-01-01T00:00:00.000Z",
            "snow_info": {
              "ticket_number": "text",
              "sys_id": "text"
            },
            "webhook_info": {
              "info": "text"
            },
            "jira_info": {
              "keys": [
                "text"
              ]
            },
            "slack_app_info": {},
            "notification_id": "text",
            "triggered_at": "2026-01-01T00:00:00.000Z",
            "action_name": "text"
          }
        ]
      },
      "notification_status": 1,
      "reviewers": [
        {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        }
      ],
      "signed_off_state": 1,
      "signed_off_at": "2026-01-01T00:00:00.000Z",
      "signed_off_by": {
        "user_type": "text",
        "id": "text",
        "email": "text",
        "name": "text",
        "alternate_email": "text"
      },
      "action_log": {
        "entries": [
          {
            "action": 1,
            "user": {
              "user_type": "text",
              "id": "text",
              "email": "text",
              "name": "text",
              "alternate_email": "text"
            },
            "time": "2026-01-01T00:00:00.000Z",
            "note": "text",
            "reviewer_detail": {
              "old_reviewers": [
                {
                  "user_type": "text",
                  "id": "text",
                  "email": "text",
                  "name": "text",
                  "alternate_email": "text"
                }
              ],
              "new_reviewers": [
                {
                  "user_type": "text",
                  "id": "text",
                  "email": "text",
                  "name": "text",
                  "alternate_email": "text"
                }
              ],
              "reason": 1
            },
            "decision_detail": {
              "decision": 1,
              "note": "text"
            },
            "decision_cleared_detail": {
              "previous_decision": 1,
              "original_decider": {
                "user_type": "text",
                "id": "text",
                "email": "text",
                "name": "text",
                "alternate_email": "text"
              },
              "reason": 1,
              "note_outcome": 1
            },
            "revocation_request_detail": {
              "request_id": "text"
            },
            "approval_level": 1
          }
        ]
      },
      "reviewer_assignment": {
        "users_manager": true,
        "resource_managers": true,
        "reviewers": [
          {
            "user_type": "text",
            "id": "text",
            "email": "text",
            "name": "text",
            "alternate_email": "text"
          }
        ],
        "fallback_reviewers": [
          {
            "user_type": "text",
            "id": "text",
            "email": "text",
            "name": "text",
            "alternate_email": "text"
          }
        ],
        "reviewers_managers_for_approval_levels": [
          0
        ],
        "previous_review_assignment": true,
        "assign_self": true,
        "resource_owner_lookup_order": 0,
        "current_reviewers_managers": true
      },
      "automation_run_ids": [
        "text"
      ],
      "decision_by": {
        "user_type": "text",
        "id": "text",
        "email": "text",
        "name": "text",
        "alternate_email": "text"
      },
      "decision_at": "2026-01-01T00:00:00.000Z",
      "revoke_request_infos": [
        {
          "id": "text",
          "state": 1,
          "error_message": "text"
        }
      ],
      "old_reviewers": [
        {
          "user_type": "text",
          "id": "text",
          "email": "text",
          "name": "text",
          "alternate_email": "text"
        }
      ],
      "predefined_question_response": [
        {
          "question_id": "text",
          "answer_id": "text",
          "answer_text": "text"
        }
      ],
      "is_assigned_to_current_user": true,
      "ai_suggestion": {
        "suggestion": 1,
        "reason_codes": [
          "text"
        ],
        "cohort_id": "text",
        "cohort_index": 1
      },
      "itsm_request_number": "text",
      "itsm_request_status": "text",
      "itsm_request_url": "text",
      "itsm_request_last_updated_at": "2026-01-01T00:00:00.000Z",
      "rest_action_infos": [
        {
          "rest_action_id": "text",
          "status": 1,
          "error_message": "text",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "response_body": "text",
          "response_truncated": true,
          "do_not_retry": true
        }
      ]
    },
    "mutable_filter": "text",
    "apply_to_all_rows": true
  }
}
{}