update snipet with latest api definition.