dots.v2.genAi.agents.byAgent_uuId().functions.byFunction_uuid().put()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.agents.byAgent_uuId(agent_uuId).functions.byFunction_uuid(function_uuid).put(body: ApiUpdateAgentFunctionInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateAgentFunctionOutput>Description
To update the function route, send a PUT request to /v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}.
Parameters
Path Parameters
agent_uuIdstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"Agent id
function_uuidstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"Function id
Request Body
agentUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Agent id
descriptionstring optionalExample:
"My Function Description"Funciton description
faasNamestring optionalExample:
"my-function"The name of the function in the DigitalOcean functions platform
faasNamespacestring optionalExample:
"default"The namespace of the function in the DigitalOcean functions platform
functionNamestring optionalExample:
"My Function"Function name
functionUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Function id
inputSchemaobject optionalDescribe the input schema for the function so the agent may call it
outputSchemaobject optionalDescribe the output schema for the function so the agent handle its response
Request Sample
Response Example
More Information
See /v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid} in the API reference for additional detail on responses, headers, parameters, and more.