add put api for gnats