Check out our upcoming events and meetups! View events →
Update enterprise information. All fields are optional — only the provided fields will be updated.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const enterprise = await client.enterprises.update('6a09cdc3-8948-47f0-aa62-74ac943d6c58');
console.log(enterprise.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"legal_name": "Acme Corp Inc.",
"doing_business_as": "Acme",
"organization_type": "commercial",
"country_code": "US",
"role_type": "enterprise",
"customer_reference": "<string>",
"website": "<string>",
"fein": "<string>",
"industry": "<string>",
"number_of_employees": "1-10",
"organization_legal_type": "corporation",
"primary_business_domain_sic_code": "<string>",
"corporate_registration_number": "<string>",
"professional_license_number": "<string>",
"dun_bradstreet_number": "<string>",
"organization_contact": {
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@acme.com",
"job_title": "VP of Engineering",
"phone": "+16035551234"
},
"billing_contact": {
"first_name": "John",
"last_name": "Doe",
"email": "billing@acme.com",
"phone_number": "15551234568"
},
"organization_physical_address": {
"country": "United States",
"administrative_area": "Illinois",
"city": "Chicago",
"postal_code": "60601",
"street_address": "123 Main St",
"extended_address": "Suite 400"
},
"billing_address": {
"country": "United States",
"administrative_area": "Illinois",
"city": "Chicago",
"postal_code": "60601",
"street_address": "123 Main St",
"extended_address": "Suite 400"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the enterprise (UUID)
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
All fields are optional. Only provided fields will be updated.
Legal name of the enterprise
3 - 64DBA name
255Customer reference identifier
255Company website URL
255Federal Employer Identification Number. Format: XX-XXXXXXX or XXXXXXXXX
20Industry classification
Employee count range
1-10, 11-50, 51-200, 201-500, 501-2000, 2001-10000, 10001+ Legal structure type
corporation, llc, partnership, nonprofit, other SIC Code
10Corporate registration number
100Professional license number
100D-U-N-S Number
20Organization contact information. Note: the response returns this object with the phone field as 'phone' (not 'phone_number').
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Enterprise updated successfully
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const enterprise = await client.enterprises.update('6a09cdc3-8948-47f0-aa62-74ac943d6c58');
console.log(enterprise.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"legal_name": "Acme Corp Inc.",
"doing_business_as": "Acme",
"organization_type": "commercial",
"country_code": "US",
"role_type": "enterprise",
"customer_reference": "<string>",
"website": "<string>",
"fein": "<string>",
"industry": "<string>",
"number_of_employees": "1-10",
"organization_legal_type": "corporation",
"primary_business_domain_sic_code": "<string>",
"corporate_registration_number": "<string>",
"professional_license_number": "<string>",
"dun_bradstreet_number": "<string>",
"organization_contact": {
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@acme.com",
"job_title": "VP of Engineering",
"phone": "+16035551234"
},
"billing_contact": {
"first_name": "John",
"last_name": "Doe",
"email": "billing@acme.com",
"phone_number": "15551234568"
},
"organization_physical_address": {
"country": "United States",
"administrative_area": "Illinois",
"city": "Chicago",
"postal_code": "60601",
"street_address": "123 Main St",
"extended_address": "Suite 400"
},
"billing_address": {
"country": "United States",
"administrative_area": "Illinois",
"city": "Chicago",
"postal_code": "60601",
"street_address": "123 Main St",
"extended_address": "Suite 400"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}