AddFlag

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

FieldMax Length*RequiredNotes
response_type
YesSet this field value to json to return results in JSON format
accountid
YesMust be numeric. Account ID for this account. 
apikey
YesAPI Key for this account. 
name50YesDisplay name for the new flag
imagefilename50YesImage 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&gtp> 

<?xml version="1.0"?>  
<results>
      <error>Flag with this 'name' already exists</error>  
</results>