NATS5 REST API Site POST option-rule
From TMM Wiki
Jump to navigationJump to search
POST /site/option-rule
Description
- Add new option rule
Resource URL
- http://domain/api/site/option-rule
- Replace domain with the nats domain
- POST
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- optionid
- type: digit
- required
- rule_type
- type: trinary_digit (0, 1, or 2)
- required
- login
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- option
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- program
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- site
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- tour
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- biller
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- cascade
- type: string_list (Either a comma-separated string of strings, or a JSON array of strings)
- optional
- country
- type: string_list (Either a comma-separated string of strings, or a JSON array of strings)
- optional
- start_time
- type: string
- optional (default value: NOW)
- end_time
- type: string
- optional (default value: FOREVER)