Can't save changes.
# support
k
Did you resolved the issue? Facing the same issue
n
Yep, it is vapi's server side problem.
I tried after some time, now it working.
k
Glad it resolved
v
If you encounter the "each value in nodes.tool.body '$ref' is unsupported" error when saving an API tool node, make sure your JSON schema does not use
$ref
references.
Instead, define all properties directly in the schema, like this:
Copy code
json
{
  "type": "object",
  "properties": {
    "firstName": { "type": "string" }
  }
}
This ensures compatibility with Vapi and supported LLM providers. Source: - [Vapi API Request Node Documentation](https://docs.vapi.ai/workflows/nodes/api-request)
If you encounter this error again, make sure your API tool node's body schema does not use
$ref
references.
Instead, define properties directly, like this:
Copy code
json
"body": {
  "type": "object",
  "properties": {
    "firstName": { "type": "string" }
  }
}
Avoid using
$ref
in your schema, as it's not supported by Vapi's function calling with OpenAI, Anthropic, or Google.
For more details, see the [API Request Node documentation](https://docs.vapi.ai/workflows/nodes/api-request). Source: - [API Request Node documentation](https://docs.vapi.ai/workflows/nodes/api-request)
c
Hey Naveen, checking if this is resolved/solved for you?
n
Yeah, now it is solved.
Yeah, the issue is solved on it's own.
2 Views