Skip to main content

Updates information for a SIM Card Data Usage Notification

PATCH 
/sim_card_data_usage_notifications/:id

Updates information for a SIM Card Data Usage Notification.

Request

Path Parameters

    id uuidrequired

    Identifies the resource.

Body

required

    sim_card_id uuid

    The identification UUID of the related SIM card resource.

    threshold

    object

    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

200: Successful Response

401: Unauthorized

default: Unexpected error

Request samples


curl -L -X PATCH 'https://api.telnyx.com/v2/sim_card_data_usage_notifications/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"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"
}'

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"
}
}