Actions
Bug #22017
closedError ir create node API example in docs
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
Hello,
it's me again :)
I try to create a nodes from the API endpoint and I meet a little error with the requests samples :
https://docs.rudder.io/api/v/16/#tag/Nodes/operation/createNodes
[ { "id": "378740d3-c4a9-4474-8485-478e7e52db52", "hostname": "my.node.hostname.local", "status": "accepted", "os": { "type": "linux", "name": "debian", "version": 9.5, "fullName": "Debian GNU/Linux 9 (stretch)", "servicePack": "string" }, "policyServerId": "root", "machineType": "vmware", "state": "enable", ...
If you use this you'll end up with :
"action": "createNodes", "result": "error", "errorDetails": { "created": [], "failed": [ { "378740d3-c4a9-4474-8485-478e7e52db52": [ "[validation] Node 'state' must be one of 'empty-policies, enabled, ignored, initializing, preparing-eol' but 'enable' provided" ] } ] }
Can you edit to change the payload example + the documentation ?
Best Regards,
Alexis TARUSSIO
Actions