How to create agents in fastpath via HTTP Service plugin

Does anyone know how to create agents in FastPath via HTTP Service, the one similar to UserService plugin.

I have configured openfire to LDAP and i want to create agents externally via HTTP Service in Fastpath. I’m not attempting to create the users in LDAP and we don’t want that anyway.

Externally i could insert into the FPAgent and FPQueueAgent table but its not reflecting in the admin console. Looks like we need to update the cache as well for the agent to be visible immediately. Is there any plugin accessible available via HTTP Service which can do this?

Also i didn’t find any clear documentation on how to create a plugin in openfire. Can someone help in pointing to correct document.