How to insert a record in the nested type

I have an elastic index and it also contains the nested type, now I want to perform insert, update and delete to an particular record in nested type. how can this be possible ? I am using the PHP client