Endpoints for managing function calls
Return data of a function call
As for function calls and function returns, they are customized abilities and skills that can be added to Darwin AI according to the client’s needs — for example, integration with the user’s calendar to schedule appointments.
AUTHORIZATIONS:
Darwin API Key or (App Key and App Signature and Agent ID)
PATH PARAMETERS
Name | Type | Description |
id (required) | string (id) | ID of the function call to update |
REQUEST BODY SCHEMA:
application/json
Field | Type | Description |
returnData | object | Data to be returned from the function call. This will be used to update the response of a function call so that the agent can use the data to generate a response. |
Request example
{ "returnData": { "weather": "sunny", "temperature": 25 } }Responses
✅ 200 Response body
Field | Type | Description |
functionCallId | string | The ID of the function call that was updated. |
Example response:
{ "functionCallId": "1234" }❌ 400 Response body
Field | Type | Description |
message | string | Error message. This will provide more information about the error that occurred. |
