Thanks, this is what I was looking for. I have done the GET api/system/ldap/settings and I can save my settings.
How could I do a POST api/system/ldap/test? When I use no parameter I get:
{
“type”: “ApiError”,
“message”: “HTTP 415 Unsupported Media Type”
}
When I pu {} I get:
{
“type”: “ApiError”,
“message”: “Can not construct instance of org.graylog2.rest.models.system.ldap.requests.LdapTestConfigRequest, problem: Null ldapUri\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@547f9139; line: 1, column: 2]”
}
And when I put the ldap_uri I get:
{
“type”: “ApiError”,
“message”: “”
}
Without knowing how you had send what - I can’t help you with that. But the Graylog Interface will only communicate the API the same way you do via CURL