Qubicle Crossbar Feature API
Introduction
This provides an API for qubicle features that allows an admin to set various features on or off
Supported Features
“pro”
Supported Values: true | false This will enable the current account for pro features, this will incur additional charges for billing purposes.
“account_upgrade”
Supported Values: disable | allow This value will allow an account to prevent sub-accounts from modifying the features.
NOTE The return value for this field has 3 possible values to denote the states, they are:
- disable: the current account has activated the setting, sub-accounts cannot modify the values
- deny: the current account is not allowed to modify the values
- allow: the current account is allowed to modify the values
Actions
List features
This action will return a list of the configured features.
GET /v2/accounts/{ACCOUNT_ID}/qubicle
curl -v -X GET -H "X-Auth-Token: {AUTH_TOKEN}" -H "Content-Type: application/json" http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/qubicle
{
"data":{
"features":{
"pro": true | false,
"account_upgrade": "disable" | "deny" | "allow"
}
},
"status":"success",
"request_id":"{REQUEST_ID}",
"auth_token":"{AUTH_TOKEN}"
}
Set features
POST /v2/accounts/{ACCOUNT_ID}/qubicle
curl -v -X POST -H "X-Auth-Token: {AUTH_TOKEN}" -H "Content-Type: application/json" http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/qubicle -d '{"data":{"features": {"pro": {PRO_VALUE}, "account_upgrade": {ACCOUNT_UPGRADE_VALUE}}}}'
{
"status":"success",
"request_id":"{REQUEST_ID}",
"auth_token":"{AUTH_TOKEN}"
}