Skip to main content
PATCH
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.

Path Parameters

dir_id
string<uuid>
required

The DIR id. Lowercase UUID.

Example:

"16635d38-75a6-4481-82e8-69af60e05011"

ref_type
enum<string>
required

Reference type to address.

Available options:
business,
financial
Example:

"business"

slot
integer
required

Reference slot, counting from 1. Business references are slots 1 and 2, matching the order they were sent in the business_references array; the financial reference is slot 1. Every reference returned by the submit and list endpoints carries its own ref_type and slot, so you do not need to derive them.

Required range: 1 <= x <= 2
Example:

1

Body

application/json

Partial update for a single reference; supply at least one field. Cosmetic fields are always editable. phone_e164 and timezone may only be changed while a scheduled call has not yet been dialed.

full_name
string

The full name of the person we should contact as your reference.

Required string length: 1 - 255
Example:

"Dana Reyes"

job_title
string | null

The reference contact's job title, for example CFO or Owner.

Maximum string length: 255
Example:

"VP of Operations"

organization
string | null

The name of the organization the reference contact works for.

Maximum string length: 255
Example:

"Acme Logistics"

relationship_to_registrant
string | null

How the reference contact is related to the registering business.

Maximum string length: 255
Example:

"Supplier"

phone_e164
string

The reference's phone number in E.164 format, for example +14155550123. We call this number during their local business hours.

Pattern: ^\+[1-9]\d{1,14}$
Example:

"+14155550123"

email
string<email>

The reference's email address. We email them scheduling and dial-in instructions before we call, so use an address they check.

Example:

"dana.reyes@example.com"

timezone
string

The reference's IANA time zone, for example America/New_York. We only call during their local 8am to 9pm hours, which is why we need it.

Example:

"America/New_York"

Response

The updated reference.

data
object
required

A reference (business or financial) on a DIR, in the customer-facing shape. No internal identifiers are exposed.