Revert a Rule to an Earlier Version
put
/api/rule/Rules/executeRevert/{id}
Reverts the specified rules file to an earlier version of the same file.
Request
Path Parameters
-
id(required): string
The path to the rules file to revert, prefixed with id-.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
FileName: string
File Name of new file (appended to Path)Example:
core/default/example_file/testing -
RevertRevision: string
File revision number to revert the file toExample:
15
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Type:
Show Source
object-
message: string
The response message.Example:
SVN revert successful -
success: boolean
Whether the operation was a success (true) or failure (false).Example:
true
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown -
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
arrayThe list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type:
object