import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const billingGroup = await client.billingGroups.update('f5586561-8ff0-4291-a0ac-84fe544797bd', {
name: 'string',
});
console.log(billingGroup.data);{
"data": {
"record_type": "billing_group",
"id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
"organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
"name": "My billing group name",
"created_at": "2019-10-15T10:07:15.527Z",
"updated_at": "2019-10-15T10:07:15.527Z",
"deleted_at": null
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const billingGroup = await client.billingGroups.update('f5586561-8ff0-4291-a0ac-84fe544797bd', {
name: 'string',
});
console.log(billingGroup.data);{
"data": {
"record_type": "billing_group",
"id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
"organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
"name": "My billing group name",
"created_at": "2019-10-15T10:07:15.527Z",
"updated_at": "2019-10-15T10:07:15.527Z",
"deleted_at": null
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the billing group
A name for the billing group
Expected billing group response to a valid request
Show child attributes
Identifies the type of the resource.
billing_group "billing_group"
Identifies the type of resource.
"f5586561-8ff0-4291-a0ac-84fe544797bd"
Identifies the organization that owns the resource.
"f1486bae-f067-460c-ad43-73a92848f902"
A user-specified name for the billing group
"My billing group name"
ISO 8601 formatted date indicating when the resource was created.
"2019-10-15T10:07:15.527Z"
ISO 8601 formatted date indicating when the resource was updated.
"2019-10-15T10:07:15.527Z"
ISO 8601 formatted date indicating when the resource was removed.
null
{
"record_type": "billing_group",
"id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
"organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
"name": "My billing group name",
"created_at": "2019-10-15T10:07:15.527Z",
"updated_at": "2019-10-15T10:07:15.527Z",
"deleted_at": null
}Was this page helpful?