Skip to main content

Request bulk setting SIM card public IPs.

POST 
/sim_cards/actions/bulk_set_public_ips

This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.
For each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the List SIM Card Action API.

Request

Body

    sim_card_ids uuid[]required

Responses

202: Successful Response

422: Unprocessable entity. Check the 'detail' field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/sim_cards/actions/bulk_set_public_ips' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"sim_card_ids": [
"6b14e151-8493-4fa1-8664-1cc4e6d14158"
]
}'

Response samples


{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "bulk_sim_card_action",
"action_type": "bulk_set_public_ips",
"settings": {},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}