JSON API » plans » plans/features/maximum

Gets the maximum number of a feature a customer may create.

Input parameters

Requires authentication and the settings or user role privileges.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
featureStringFeature to check.Yes
customerIntegerID of customer to check for.NoSee below.

If customer is not specified, then the customer of the authentication user is used, unless auth_username indicates that the user is a customer pseudo-user, in which case the parent of the authentication user is used.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

The maximum allowed. 0 forbids a feature completely. -1 means no limit.

Example: With required parameters

http://enswitch.example.com/api/json/plans/features/maximum/?auth_username=user;auth_password=password;feature=view

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "maximum":-1 } }

Change history

VersionChanges
3.13Function added.