Not able to create tool getting error
# support
m
I am not able to create the tool with header in it, it says property metadata should not exist. Payload Object { "server": { "url": "https://test.com/functions", "timeoutSeconds": 30 }, "function": { "async": false, "name": "getdata" }, "type": "function", "async": false, "metadata": { "headers": { "x-api": "34343434" } } }
k
The issue is that you're trying to add headers under metadata, but headers should be specified in the server object. Here's the correct payload structure: { "server": { "url": "", "timeoutSeconds": 30, "headers": { "x-api": "34343434" } }, "function": { "async": false, "name": "getdata" }, "type": "function", "async": false } The error you're seeing about metadata is because the metadata field is not meant for request configuration - it's used for other purposes in the system. Headers should always be configured within the server object.
m
s
@mauryasumit Could you kindly record a video demonstrating how tools are failing to create using the API? This video would provide me with a clearer understanding of the issue and enable me to create a more accurate ticket for it. Additionally, if you could include a dashboard tool modal that shows the failure, it would be greatly beneficial.