JSON API » plans » plans/features/set
Sets values of a rate plan feature.
Input parameters
Requires authentication and the commerce role privilege.
Name | Type | Description | Required | Default value |
---|---|---|---|---|
auth_username | String | Authentication username. | Yes | |
auth_password | String | Authentication password. | Yes | |
feature | String | Feature to set. | Yes | |
plan | Integer | ID of rate plan. | Yes | |
included | Integer | Number included free. 0 for features without the concept of number. | No | 0 |
maximum | Integer | Maximum allowed. 0 for forbidden, -1 for no limit. | No | -1 |
Responses
Code | Description |
---|---|
204 | Success. |
400 | Invalid input parameters specified. Check the key and message fields for more details. |
401 | The authentication details provided are invalid. |
402 | Your role does not allow this. |
403 | Your 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
Version | Changes |
---|---|
3.13 | Function added. |