limelm.feature.add
Add a new license feature for a particular version. Note that if you want to set the feature values for existing product keys, use the limelm.pkey.setDetails function.
Arguments
api_key(Required)- Your API application key. Your api key is available on your settings page.
version_id(Required)- The id of the version to add the new feature to. You can get the version ID by examining the URL in your browser. For instance, from the URL
http://wyday.com/limelm/version/100/you can see the version ID is 100. (Note: The Version ID is not the Version GUID). name(Required)- The name of the feature.
type(Optional)- The type of the feature. The 3 possible values are "
string", "int", and "date_time". If this parameter isn't present (or is invalid) the type will default to "string". required(Optional)- Whether this feature will be required to be filled out when a new product key is created. Possible values are "
true" and "false". If this parameter isn't present (or is invalid) it will default to "true".
Example Response
The method returns your newly created feature's ID.
<feature id="42"/>
Error Codes
100: Invalid API Key- The API key passed was not valid or has expired.
101: Method "xxx" not found- The requested method was not found.
108: The version id is missing.- The version id was not specified.
109: The version doesn't exist or you don't have access to it.- Check to make sure you have access to the version id you've passed in.
118: Your account is in dormant mode. Re-enable your account.- You cannot generate product keys when your account is in dormant mode. Re-enable your account and you will no longer get this error.
125: The "name" parameter must exist and it must be less than 255 characters long.- Make sure your feature name is greater than 0 characters and less than 255.
126: Please enter a new feature name (FeatureName already exists).- You can't have multiple features with the same name. Use a unique feature name.
142: Service currently unavailable- The requested service is temporarily unavailable.