PUT
/
functions
/
{id}
Update function
curl --request PUT \
  --url https://api.vogent.ai/api/functions/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "type": "transfer",
  "lifecycleMessages": {
    "started": [
      "<string>"
    ]
  },
  "allowedNumbers": [
    {
      "number": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "type": "transfer",
  "lifecycleMessages": {
    "started": [
      "<string>"
    ]
  },
  "allowedNumbers": [
    {
      "number": "<string>"
    }
  ]
}

Path Parameters

id
string
required

ID of the function.

Body

application/json

Update function properties

allowedNumbers
object[]
required

The numbers that the agent is allowed to transfer to.

name
string

The name of the function.

description
string

A description of what the function does.

type
enum<string>
Available options:
transfer,
api
lifecycleMessages
object

Messages to display during function execution lifecycle events.

Response

Successful operation

id
string
required
name
string
required

The name of the function.

description
string
required

A description of what the function does.

type
enum<string>
required
Available options:
transfer,
api
allowedNumbers
object[]
required

The numbers that the agent is allowed to transfer to.

lifecycleMessages
object

Messages to display during function execution lifecycle events.