NATS5 REST API Mailing PATCH mailing-rule
From TMM Wiki
Jump to navigationJump to search
PATCH /mailing/mailing-rule
Description
- Edit mailer rule
Resource URL
- http://domain/api/mailing/mailing-rule
- Replace domain with the nats domain
- PATCH
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- mailid
- type: digit
- required
- ruleid
- type: string
- 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
- mailok
- type: boolean_digit
- optional
- trial
- type: trinary_digit (0, 1, or 2)
- optional
- all_email
- type: boolean_digit
- optional
- status
- type: digit (negative numbers allowed)
- optional
- status_compare
- type: string
- optional
- signup
- type: digit
- optional
- signup_compare
- type: string
- optional
- signup_timeframe
- type: digit
- optional
- amount
- type: digit
- optional
- amount_compare
- type: string
- optional
- amount_range
- type: digit
- optional
- traffic
- type: digit
- optional
- traffic_compare
- type: string
- optional
- traffic_range
- type: digit
- optional
- mailing_list_id
- type: digit
- optional
- start_time
- type: string
- optional (default value: NOW)
- end_time
- type: string
- optional (default value: FOREVER)