diff --git a/nerm/requestBodies/POST/Workflows/AutomatedWorkflow.yaml b/nerm/requestBodies/POST/Workflows/AutomatedWorkflow.yaml index 4e14355..6702e03 100644 --- a/nerm/requestBodies/POST/Workflows/AutomatedWorkflow.yaml +++ b/nerm/requestBodies/POST/Workflows/AutomatedWorkflow.yaml @@ -4,6 +4,6 @@ content: schema: type: object properties: - workflow_session: + workflow: type: object $ref: "../../../schemas/POST/Workflows/AutomatedWorkflow.yaml" \ No newline at end of file diff --git a/nerm/requestBodies/POST/Workflows/BatchWorkflow.yaml b/nerm/requestBodies/POST/Workflows/BatchWorkflow.yaml index 0ddd6cc..d0dcae4 100644 --- a/nerm/requestBodies/POST/Workflows/BatchWorkflow.yaml +++ b/nerm/requestBodies/POST/Workflows/BatchWorkflow.yaml @@ -4,6 +4,6 @@ content: schema: type: object properties: - workflow_session: + workflow: type: object $ref: "../../../schemas/POST/Workflows/BatchWorkflow.yaml" \ No newline at end of file diff --git a/nerm/requestBodies/POST/Workflows/CreateWorkflow.yaml b/nerm/requestBodies/POST/Workflows/CreateWorkflow.yaml index 99225e5..80ed07d 100644 --- a/nerm/requestBodies/POST/Workflows/CreateWorkflow.yaml +++ b/nerm/requestBodies/POST/Workflows/CreateWorkflow.yaml @@ -4,6 +4,6 @@ content: schema: type: object properties: - workflow_session: + workflow: type: object $ref: "../../../schemas/POST/Workflows/CreateWorkflow.yaml" \ No newline at end of file diff --git a/nerm/requestBodies/POST/Workflows/LoginWorkflow.yaml b/nerm/requestBodies/POST/Workflows/LoginWorkflow.yaml index 4294521..8216915 100644 --- a/nerm/requestBodies/POST/Workflows/LoginWorkflow.yaml +++ b/nerm/requestBodies/POST/Workflows/LoginWorkflow.yaml @@ -4,6 +4,6 @@ content: schema: type: object properties: - workflow_session: + workflow: type: object $ref: "../../../schemas/POST/Workflows/LoginWorkflow.yaml" \ No newline at end of file diff --git a/nerm/requestBodies/POST/Workflows/UpdateWorkflow.yaml b/nerm/requestBodies/POST/Workflows/UpdateWorkflow.yaml index 637576d..edc07c7 100644 --- a/nerm/requestBodies/POST/Workflows/UpdateWorkflow.yaml +++ b/nerm/requestBodies/POST/Workflows/UpdateWorkflow.yaml @@ -4,6 +4,6 @@ content: schema: type: object properties: - workflow_session: + workflow: type: object $ref: "../../../schemas/POST/Workflows/UpdateWorkflow.yaml" \ No newline at end of file diff --git a/nerm/schemas/POST/Workflows/AutomatedWorkflow.yaml b/nerm/schemas/POST/Workflows/AutomatedWorkflow.yaml index 3453841..5fcc842 100644 --- a/nerm/schemas/POST/Workflows/AutomatedWorkflow.yaml +++ b/nerm/schemas/POST/Workflows/AutomatedWorkflow.yaml @@ -22,10 +22,81 @@ properties: required: true description: Name of the workflow example: my_workflow - condition_rule_ids: + condition_rules_attributes: type: array items: - type: string - format: uuid + type: object + properties: + logical_operator: + type: string + enum: ["AND", "OR"] + required: true + description: The type of condition rule. + example: "RiskRule" + comparison_operator: + type: string + enum: ["<", ">", "==", "before", "include?", "absent?", "after"] + required: true + description: The operator used by the condition rule. + example: ">" + condition_object_id: + type: string + required: false + description: UUID for object targeted by the condition. + example: "cc844e99-9895-43d0-9d17-8f606b2158ba" + condition_object_type: + type: string + required: false + description: Type of object targeted by the condition. + example: "DateAttribute" + secondary_value: + type: string + required: false + description: Used for time_frame comparison. + example: "before" + tertiary_value: + type: string + required: false + description: Represents the days of a temporal comparison. + example: "before" + value: + type: string + required: false + description: The value being compared against. + example: "before" + order: + type: integer + format: int32 + required: false + description: If there are multiple rules against one workflow, this is the order that they are ran in. + example: 1 + secondary_attribute_id: + type: string + required: false + description: + example: "cc844e99-9895-43d0-9d17-8f606b2158ba" + type: + type: string + enum: [ + "RiskRule", + "ProfileIdRule", + "ProfileTypeRule", + "ProfileExistsRule", + "ProfileStatusRule", + "SessionAttributeRule", + "ProfileAttributeRule", + "ProfileDoesNotExistRule", + "IdentityProofingRule" + ] + required: true + description: The type of condition rule. + example: "ProfileIdRule" description: The ProfileTypeRule this workflow will be working with. - example: [33f072dd-13b4-41e1-8ea0-16f2a59b57c8] \ No newline at end of file + example: [{ + "type": "ProfileTypeRule", + "condition_type": "Workflow", + "comparison_operator": "==", + "logical_operator": "AND", + "value": "true", + "condition_type": "Workflow" + }] \ No newline at end of file