Add a Jira workflow validator in a new workflow

Hello everyone, I am trying to create a new worklfow using the api rest and I want to include a Jira workflow validator, when I make the request to create the new workflow I get the following
400 Bad Request
“errorMessages”: [
“Transition “To Do” - Rule “ForgeWorkflowValidator” - Unrecognized rule.”,
],
is it possible to add this type of validator by code?