Master Save
Power Master Save
URL
powermanagement/mastersave
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | 1LaqBInLg2skRSiX0efXkK0zO2YXxfHf | Key obtained from authentiaction. |
| cctype | String | M | G | For Generator G,For Purchased Power P, For Solar S | ||
| costcentreid | Integer | O | 16 | If cctype = G then mandatory | ||
| consumerno | String | O | 7894561230789 | Mandatory if cctype <> G | ||
| vendorid | Integer | O | 0 | Mandatory if cctype <> G | ||
| ctratio | Decimal | M | 1 | CT Ratio - Current Transformer Ratio | ||
| multiplicationfactor | Decimal | M | 1 | Multiplication Factor of energy | ||
| capacityofgenerator | Decimal | O | 1 | Input if cctype = G | ||
| powerfactor | Decimal | M | 1 | Power Factor | ||
| isedit | String | M | F | If editing existing entry then T else F | ||
| id | String | O | 1 | if isedit = T then mandatory | ||
| remarks | String | M | test entry | Remarks | ||
| mdt1 | Decimal | M | 4 | Maximum Demand T1 | ||
| mdt2 | Decimal | M | 7 | Maximum Demand T2 | ||
| mdt3 | Decimal | M | 8 | Maximum Demand T3 |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| id | Integer | M | 1 | ID of master data | ||
| cctype | String | M | G | requested cctype |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"cctype": "G",
"costcentreid": "16",
"consumerno": "7894561230789",
"ctratio": "1",
"multiplicationfactor": "1",
"capacityofgenerator": "1",
"powerfactor": "1",
"isedit": "F",
"id": "1",
"remarks": "test entry",
"mdt1": "4",
"mdt2": "7",
"mdt3": "8"
}
Sample Success Response
{
"id": "1",
"cctype": "G",
"e": 200,
"msg": "Success"
}