POST api/MeterMACSGen2/SetAlertInfo

Sets alert information for given customer

Request Information

URI Parameters

None.

Body Parameters

MMG2AlertInfoModel
NameDescriptionTypeAdditional information
AccountCode

Code of account to update alert info for

string

None.

BoatNo

ID of boat

integer

None.

ReceiveUnpluggedAlerts

Indicates if unplugged alerts should be sent to customer

boolean

None.

ReceiveLowBalanceAlerts

Indicates if low balance alerts should be sent to customer

boolean

None.

ReceiveCriticalBalanceAlerts

Indicates if critical balance alerts should be sent to customer

boolean

None.

ReceiveAlertsByEmail

Indicates if alerts should be sent by email

boolean

None.

ReceiveAlertsBySMS

Indicates if alerts should be sent by SMS

boolean

None.

LowBalanceThresholdValue

Low balance alerts sent when balance reaches this value

decimal number

None.

LowBalanceThresholdPercentage

Low balance alerts sent when balance reaches the value calculated as a percentage of the most recent top up

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "accountCode": "sample string 1",
  "boatNo": 1,
  "receiveUnpluggedAlerts": true,
  "receiveLowBalanceAlerts": true,
  "receiveCriticalBalanceAlerts": true,
  "receiveAlertsByEmail": true,
  "receiveAlertsBySMS": true,
  "lowBalanceThresholdValue": 7.0,
  "lowBalanceThresholdPercentage": 8.0
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AccountCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BoatNo"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ReceiveUnpluggedAlerts"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ReceiveLowBalanceAlerts"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ReceiveCriticalBalanceAlerts"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ReceiveAlertsByEmail"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ReceiveAlertsBySMS"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="LowBalanceThresholdValue"

7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="LowBalanceThresholdPercentage"

8
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e--