Foreman API_create host

I tried to create a host using foreman API as a user without Admin rights
.It didn't work.
However it seems to work with admin account .

Did anyone has suggestions for this ?

What was the response from the server?
Are you able to create the same host as the user from the UI?

Martin

··· On Tue, Aug 16, 2016 at 2:55 PM, VS wrote:

I tried to create a host using foreman API as a user without Admin rights
.It didn’t work.
However it seems to work with admin account .

Yes I can create same host as user from foreman GUI.
Error message i got is

Status Code: 422 Unprocessable Entity"full_messages": ["PXELinux-Vorlage:
undefined method `encoding' for nil:NilClass"]

··· On Tuesday, August 16, 2016 at 3:54:24 PM UTC+2, Martin Bačovský wrote: > > > On Tue, Aug 16, 2016 at 2:55 PM, VS <vineet....@gmail.com > > wrote: > >> I tried to create a host using foreman API as a user without Admin rights >> .It didn't work. >> However it seems to work with admin account . >> > > What was the response from the server? > Are you able to create the same host as the user from the UI? > > Martin >