Skip to main content

Create a new SIM card data usage notification

POST 
/sim_card_data_usage_notifications

Creates a new SIM card data usage notification.

Request

Body

required

    sim_card_id uuidrequired

    The identification UUID of the related SIM card resource.

    threshold

    object

    required

    Data usage threshold that will trigger the notification.

    amount decimal
    unit string

    Possible values: [MB, GB]

    Data usage threshold that will trigger the notification.

Responses

201: Successful Response

401: Unauthorized

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/sim_card_data_usage_notifications' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"threshold": {
"amount": "2048.1",
"unit": "MB"
}
}'

Response samples


{
"data": {
"id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
"sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
"threshold": {
"amount": "2048.0",
"unit": "MB"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}