Skip to main content
POST
Create Threshold

Body

Threshold object

AccountId
string | null

Your Telegent account identifier (AID-). Scopes the threshold to this account.

Example:

"AID-1234567"

ThresholdName
string | null

Human-readable name for this threshold.

Example:

"80% Data Alert"

ThresholdType
string | null

Resource the threshold applies to. Supported values: Data, SMS, Voice.

Example:

"Data"

ThresholdAmount
integer

Numeric limit at which the threshold triggers (e.g. 80 for 80 MB).

Example:

80

ThresholdUnit
string | null

Unit of measurement for ThresholdAmount. Supported values: MB, GB, Count.

Example:

"MB"

ThresholdAction
string | null

Action taken when the threshold is reached. Supported values: Alert, Pause, Restrict.

Example:

"Alert"

Response

Success — returns the new threshold ID and record

The response is of type object.