Sorry, I meant name rather than certname, put this comment on the wrong line.

Currently name and values are embedded inside some JSON in the "facts" parameter on the API, rather than simply passing name and values/facts as first class parameters to the API.