Set or Update a Customer's Threshold
put
/apis/threshold-v1/external/{utilityCode}/customers/{utilityCustomerId}/threshold
Sets or updates the threshold value for the specified customer.
Request
Path Parameters
-
utilityCode(required): string
Maximum Length:
4
3-4 character utility representation, all caps. E.g. "UTIL", "ZOK1", "BGE". -
utilityCustomerId(required): string
Utility internal customer identifier.
The threshold information object.
Root Schema : ExternalThresholdRequest
Type:
Show Source
object
-
percentage:
number(float)
The threshold value for the customer, represented as a percentage value. The value can range from 0 to 1000.
-
threshold:
number(float)
The threshold value for the customer
Response
204 Response
Threshold has been successfully updated for the specified customer.
400 Response
Utility does not support setting thresholds. Threshold is either negative or too high.
Nested Schema : error
Type:
Show Source
object
-
details(required):
string
Additional details about the error
-
httpStatus(required):
integer(int32)
The HTTP status code for the error
-
serviceErrorCode(required):
string
The identifying error code
404 Response
No customer with the given utilityCustomerId.
Nested Schema : error
Type:
Show Source
object
-
details(required):
string
Additional details about the error
-
httpStatus(required):
integer(int32)
The HTTP status code for the error
-
serviceErrorCode(required):
string
The identifying error code