Overview
Adds a new “Flag” to settings based on information sent via an http form post.
(Adds the Flag to Settings > Flags. Function does not assign the flag to a contact)
Post Url
https://hyperdrivepro.morethanrewards.com/api/2/AddFlag.aspx
- SSL is required
Form Fields
Field | Max Length* | Required | Notes |
response_type | Yes | Set this field value to json to return results in JSON format | |
accountid | Yes | Must be numeric. Account ID for this account. | |
apikey | Yes | API Key for this account. | |
name | 50 | Yes | Display name for the new flag |
imagefilename | 50 | Yes | Image filename. Image location must point to an existing image in the images/flags/ folder. See source HTML in Settings > Flags for available image filenames. Only give the filename. Do not give any path or URLs information. Example: flag-blue.gif |
Sample Results
Success Message
<?xml version="1.0"?> <results> <message>Success</message> <flagid>15631</flagid> </results>;
Sample Failure Message
<?xml version="1.0"?> <results> <error>Authentication failed</error> </results>p> <?xml version="1.0"?> <results> <error>Flag with this 'name' already exists</error> </results>