AddFlag

Overview

Add a new "Flag" to settings based on information sent via an http form post.

(Add the Flag to Settings > Flags. Function does not assign the flag to a contact)

URL

POST/api/2/AddFlag.aspx

Parameters

FieldMax LengthRequiredNotes
response_typefalseDefault results will be returned in XML.
Set this field value to json to return results in JSON format
accountidtrueMust be numeric. Account ID for this account.
Found in Settings > API Settings or for White Label CRM in the Admin control panel
apikeytrueAPI Key for this account.
Found in Settings > API Settings or for White Label CRM in the Admin control panel
name50trueDisplay name for the new flag
imagefilename50trueImage 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
color1falseBackground color for flag (Number 0-6).
Available options:

0: White (Default)
1: Red
2: Orange
3: Yellow
4: Green
5: Blue
6: Violet