parameters: (self, instance, validated_data)
return_statement: return instance
docstring: Update and return an existing `Snippet` instance, given the validated data.
docstring_summary: Update and return an existing `Snippet` instance, given the validated data.
docstring_tokens: Update and return an existing Snippet instance given the validated data .
function: def update(self, instance, validated_data):
          """
          Update and return an existing `Snippet` instance, given the validated data.
          """
          instance.name = validated_data.get('name', instance.name)
          instance.uuid = validated_data.get('uuid', instance.uuid)
          return instance
function_tokens: def update ( self , instance , validated_data ) : instance . name = validated_data . get ( 'name' , instance . name ) instance . uuid = validated_data . get ( 'uuid' , instance . uuid ) return instance