Creating and modifying tracker items via API
Hello.
I need to create and modify tracker items from an external program in Linux environment.
I've correctly set up the API access with its bearer token and I'm able to read tracker items and to change their status, via API, but I can not modify them or create new items. API is throwing this response all the times:
I think the format of the request body I'm sending is not accepted by the API. I can not find any example in the doc API page 2 or in the forums on how to build the request although I've found this example 1 and used that format but it didn't work.
The format I'm using with API page and with curl as well is:
"logName": 1,
"logInterface": 2,
"logUser": "jdoe",
"logIP": "1.1.1.1",
"logMAC": "ffffffff",
"logHostname": "joesmacbook",
"logAction": "INIT",
Which is the same than the 1 example:
"newsTitle": "a test title",
"newsURL": "https://tiki.org",
"newsSummary": "a test news summary",
"newsDate": now,
Which is the correct request body format to, in this case, modify a tracker item?
Also, which is the correct one to create new items?
It would be nice to have some examples in the doc page 2.
Thank you.
F. Ken
1 https://dev.tiki.org/API-Access-Example
2 https://doc.tiki.org/API