Hello all. I have a datatable with a couple of fields. The datatable has a few test rows in it. ANI is the key field and Callback is a string field.
I get an error when doing a PUT to /api/v2/flows/datatables/{datatableid}/rows/{rowid}
Here's an example:
/api/v2/flows/datatables/38a9b56e-7ae0-4509-858c-526b920b6dec/rows/789
JSON Body:
{ "CallbackNumber" : "12345" }
{
"message": "'' is too short\n\nFailed validating 'minLength' in schema['properties']['key']:\n {'$id': '/properties/key',\n 'displayOrder': 0,\n 'maxLength': 256,\n 'minLength': 1,\n 'title': 'ANI',\n 'type': 'string'}\n\nOn instance['key']:\n ''",
"code": "flows.datatables.schema.exception",
"status": 400,
"messageParams": {},
"contextId": "f52cb350-9370-4a7c-85d3-eab490a2c52a",
"details": [],
"errors": []
}
What's interesting is that if I change the JSON Body (see below) it works:
{ “Key”: “789”, "CallbackNumber" : "12345" }
If I need to pass the rowid in the JSON body then why do I need to pass the value in the URL?
Thank you,
Felice