JSON API » plans » plans/features/set

Sets values of a rate plan feature.

Input parameters

Requires authentication and the commerce role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
featureStringFeature to set.Yes
planIntegerID of rate plan.Yes
includedIntegerNumber included free. 0 for features without the concept of number.No0
maximumIntegerMaximum allowed. 0 for forbidden, -1 for no limit.No-1

Responses

CodeDescription
204Success.
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.
403Your rate plan does not allow this.

Data returned

No data is returned.

Example: With required parameters

http://enswitch.example.com/api/json/plans/features/set/?auth_username=user;auth_password=password;plan=123;feature=view;maximum=-1;included=0

{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }

Change history

VersionChanges
3.13Function added.