Skip to main content
PATCH
FIXED · number When website functions are enabled, eligible enabled functions on that number can be offered to visitors. A visitor ID groups a conversation and cannot authorise access to your own customer records. NOT OFFERED → do this instead · operation Putting a new action tag like [BOOK_NOW] in a prompt does not create a function. Configure a number-scoped function with its argument schema, or use a supported phone booking integration. YOU CAN CHANGE · number Choose a supported name, HTTPS destination and HTTP method. Keep credentials in trusted configuration and return only the response fields the agent needs. SCOPE · operation A configured function can call your service with validated arguments. Make each public function safe for its intended audience. Read the compact AI rules Change only supplied fields of one owned custom function. Omitted fields keep their saved values; this does not create a missing function.
Method: PATCH ·
Success: 200 ·
Scope: Owning account
The important part
  • Save the setting for the exact owned target, then read it back to confirm.
  • Verify signed inputs before executing consequential work.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential. When personal dashboard sessions are enabled, Owner and Admin sessions can write these settings; Member sessions can read only. Ownership checks still apply. Send Content-Type: application/json.

Request fields

Send a JSON object. Headers are private and never returned by the list route. Timeout inputs are parsed and clamped; the stored range is 1,000–45,000 ms. A supplied falsey description becomes an empty string, falsey headers become an empty object, falsey parameters restore the default schema, and falsey speak_during clears the phrase.

Response fields

200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

Example request

Examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep NIXFLEX_API_KEY in your private process environment. The cURL example uses Bash. Use approved owned fixtures and keep configuration responses private. Python shows sync usage; AsyncNixflex uses the same method with async with and await. Configure the existing MCP installation for the same account at https://api.nixflex.com. Save the request JSON fields from the example below in request-49.json privately before using cURL or CLI; replace fixture credentials only in that private file. Review the target and payload before this write.
request-49.json
MCP does not offer this operation because it accepts private credentials or executable settings; use the API, Node, CLI or Python.

Example response

Illustrative 200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.

Errors

Failures return an error object with code, message, doc_url and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

Retry and idempotency

No idempotency token is supported. Read the function list after a timeout before resending. Creation can conflict with an existing name, and repeating a delete may remove a function recreated under the same ID.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Path Parameters

phoneNumber
string
required

Owned E.164 number. URL-encode the leading plus sign.

id
string
required

Custom function ID returned by create or list for this number.

Body

application/json
name
string

Lowercase snake_case function name.

Maximum string length: 64
Pattern: ^[a-z][a-z0-9_]*$
description
string

Description supplied to the agent.

url
string

HTTPS destination; required on create.

method
enum<string>

Uppercased before validation.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE
headers
object
write-only

Private HTTP headers. GET returns only has_headers.

parameters
object

Function parameter JSON schema.

speak_during
string | null

Optional phrase; a falsey value clears it.

timeout_ms
integer

Parsed as an integer and clamped to 1,000–45,000 ms. Zero or nonnumeric values fall back to 5,000.

is_active
boolean

Only literal false disables the function.

Response

OK

ok
boolean
required

Request succeeded.

id
string
required

Function identifier.

phone_number
string
required

Owned phone number.

name
string
required

Saved function name.