curl --location --request POST '/rest/atlassian-connect/1/migration/workflow/rule/search' \
--header 'Atlassian-Transfer-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "expand": "transition",
    "ruleIds": [
        "55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
    ],
    "workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7"
}'{
    "workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7",
    "invalidRules": [
        "55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
    ],
    "validRules": [
        {
            "workflowId": {
                "name": "Workflow name",
                "draft": true
            },
            "postFunctions": [
                {
                    "id": "123",
                    "key": "WorkflowKey",
                    "configuration": {
                        "value": "WorkflowValidator"
                    },
                    "transition": {
                        "name": "transition",
                        "id": 123
                    }
                }
            ],
            "conditions": [
                {
                    "id": "123",
                    "key": "WorkflowKey",
                    "configuration": {
                        "value": "WorkflowValidator"
                    },
                    "transition": {
                        "name": "transition",
                        "id": 123
                    }
                }
            ],
            "validators": [
                {
                    "id": "123",
                    "key": "WorkflowKey",
                    "configuration": {
                        "value": "WorkflowValidator"
                    },
                    "transition": {
                        "name": "transition",
                        "id": 123
                    }
                }
            ]
        }
    ]
}