Re: [graylog2] Can find API Docu for create user

2014-06-16 Thread Brantley Hobbs
Dennis, I have similar issues creating new widgets for dashboards. Is there any documentation that shows what the JSON looks like for each API call? (E.g. required fields, etc.) Thanks! Brantley Hobbs On Mon, Jun 16, 2014 at 12:33 PM, Dennis Oelkers wrote: > Hey Jens, > > you are missing the

Re: [graylog2] Can find API Docu for create user

2014-06-16 Thread Dennis Oelkers
Hey Jens, you are missing the password field in your user creation API call. I could only determine this by checking the source code. I will add some validation the server resource, so a proper error message is returned in future version! :) Kr, D. On 05.06.2014, at 16:58, Jens Kuehnel

Re: [graylog2] Can find API Docu for create user

2014-06-13 Thread Jens Kuehnel
Hi, if anyone is interested I put the JSON Body directly into the Mongodb in the collection users. This worked. The python script is available on request. (Sorry no ruby code :-)) CU Jens > { > "id":"539047e2e4b092d07a61c05e", > "startpage":{}, > "timezone":"Europe/Berlin", > "username":"XXX

[graylog2] Can find API Docu for create user

2014-06-05 Thread Jens Kuehnel
Hi, I try to create a couple of new users with POST to /users. The API-Browser tells me to use a JSON body, but without the infos what should be inside. I used the output of GET /users/{username} as a starting point. { "id":"539047e2e4b092d07a61c05e", "startpage":{}, "timezone":"Europe/Berlin",