Create a Rule From Upload
post
/api/rule/Rules/createUploadFile
Creates a new rule from upload.
The minimum required properties in the request body are:
The minimum required properties in the request body are:
- id
- PathName
- UploadFile
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
CommitLog: string
Text to enter as commit log for the changeExample:
Default Commit Message
-
PathName: string
Path to fileExample:
base.rules
-
UploadFile: string
File to uploadExample:
(binary)
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Type:
Show Source
object
-
message: string
The response message.Example:
Added file
-
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:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
-
Array of:
object items
An error.
Nested Schema : items
Type:
object
An error.