import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const simCardGroup = await client.simCardGroups.create({ name: 'My Test Group' });
console.log(simCardGroup.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "sim_card_group",
"default": true,
"name": "My Test Group",
"data_limit": {
"amount": "2048.1",
"unit": "MB"
},
"consumed_data": {
"unit": "MB",
"amount": "2048.1"
},
"private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"wireless_blocklist_id": "a13bc415-7966-43bf-90d4-63cc76275289",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Creates a new SIM card group object
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const simCardGroup = await client.simCardGroups.create({ name: 'My Test Group' });
console.log(simCardGroup.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "sim_card_group",
"default": true,
"name": "My Test Group",
"data_limit": {
"amount": "2048.1",
"unit": "MB"
},
"consumed_data": {
"unit": "MB",
"amount": "2048.1"
},
"private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"wireless_blocklist_id": "a13bc415-7966-43bf-90d4-63cc76275289",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
Identifies the resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
Identifies the type of the resource.
"sim_card_group"
Indicates whether the SIM card group is the users default group.<br/>The default group is created for the user and can not be removed.
true
A user friendly name for the SIM card group.
"My Test Group"
The identification of the related Private Wireless Gateway resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
The identification of the related Wireless Blocklist resource.
"a13bc415-7966-43bf-90d4-63cc76275289"
ISO 8601 formatted date-time indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
Was this page helpful?