rehive.admin.subtypes.get() .then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": [
- {
- "id": 0,
- "name": "string",
- "label": "string",
- "description": "string",
- "tx_type": "credit",
- "usage_type": "partner",
- "partner": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "archived": true,
- "created": 0,
- "updated": 0
}
]
}
{- "name": "string",
- "label": "string",
- "description": "string",
- "tx_type": "credit",
- "usage_type": "partner",
- "partner": 0,
- "archived": false
}
{- "status": "string",
- "data": {
- "id": 0,
- "name": "string",
- "label": "string",
- "description": "string",
- "tx_type": "credit",
- "usage_type": "partner",
- "partner": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "archived": true,
- "created": 0,
- "updated": 0
}
}
rehive.admin.subtypes.get({"id": serviceId}) .then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": {
- "id": 0,
- "name": "string",
- "label": "string",
- "description": "string",
- "tx_type": "credit",
- "usage_type": "partner",
- "partner": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "archived": true,
- "created": 0,
- "updated": 0
}
}
{- "name": "string",
- "label": "string",
- "description": "string",
- "usage_type": "partner",
- "partner": 0,
- "archived": false
}
{- "status": "string",
- "data": {
- "id": 0,
- "name": "string",
- "label": "string",
- "description": "string",
- "tx_type": "credit",
- "usage_type": "partner",
- "partner": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "archived": true,
- "created": 0,
- "updated": 0
}
}
{- "name": "string",
- "label": "string",
- "description": "string",
- "usage_type": "partner",
- "partner": 0,
- "archived": false
}
{- "status": "string",
- "data": {
- "id": 0,
- "name": "string",
- "label": "string",
- "description": "string",
- "tx_type": "credit",
- "usage_type": "partner",
- "partner": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "archived": true,
- "created": 0,
- "updated": 0
}
}
rehive.admin.subtypes.delete(serviceId) .then(function (res) { ... }, function (err) { ... });
{- "status": "string"
}