Hi Marevol,
I’m trying to create a Filesystem crawler using ’ /api/admin/fileconfig/setting’.
I prepare json in this way:
{
“name” = “Goofy”,
“description” = “Goofy docs”,
“paths” = “file:/D:/Docs/Goofy”,
“numOfThread” = “5”,
“intervalTime” = “1000”,
“boost” = “100”,
“available” = “1”,
“sortOrder” = “0”
}
but I receive this message:
{
“response”: {
“message”: “Num of Thread is required. intervalTime is required. Display Order is required.”,
“version”: “13.6”,
“status”: 1
}
}
Those 3 fields are integer value.
Many thanks
Luigi
Did you send PUT request?
Yes. I sended PUT method.
The other variables are accepted.
“name” = “Goofy”,
The above is not JSON.
It should be "name": "Goofy",
.
Hi Marevol,
very thanks for your fast answer.
Yesterday already I changed assignments in Json and I tried also surrounding and not surrounding numeric value with double quote:
{
“name”: “Goofy”,
“description”: “Goofy docs”,
“paths”: “file:/D:/Docs/Goofy”,
“numOfThread”: “5”,
“intervalTime”: “1000”,
“boost”: “100”,
“available”: “1”,
“sortOrder”: “0”,
“maxAccessCount”: “100”
}
but error message is the same:
{
“response”: {
“message”: “Num of Thread is required. intervalTime is required. Display Order is required.”,
“version”: “13.6”,
“status”: 1
}
}
Luigi