anchor.diff:  %%%-------------------------------------------------------------------
  -%%% @author Krzysztof Trzepla
  -%%% @copyright (C) 2014 ACK CYFRONET AGH
  +%%% @author Lukasz Opiola
  +%%% @copyright (C) 2016 ACK CYFRONET AGH
   %%% This software is released under the MIT license
   %%% cited in 'LICENSE.txt'
   %%% @end
   %%%-------------------------------------------------------------------
  -%%% @doc This module allows for Spaces management in OZ.
  +%%% @doc This module allows for Shares management in OZ.
   %%% @end
   %%%-------------------------------------------------------------------
  -
   -module(oz_shares).
   
   -include("oz/oz_runner.hrl").
  
positive.code: 
  %% API
  -export([create/4, remove/2]).
  -export([get_details/2]).
  
  
  %%%===================================================================
  
negative.code:         },
          {ok, ShareDetails}
      end).
  
  
  %%--------------------------------------------------------------------
  %% @doc Modifies public details about Share. Parameters may contain:
  %% "name" of Share.
  %% @end
  %%--------------------------------------------------------------------
  -spec modify_details(Auth :: oz_endpoint:auth(), ShareId :: binary(),
      Parameters :: oz_endpoint:params()) -> ok | {error, Reason :: term()}.
  modify_details(Auth, ShareId, Parameters) ->
      ?run(fun() ->
          URN = "/shares/" ++ binary_to_list(ShareId),
          Body = json_utils:encode(Parameters),
          {ok, 204, _ResponseHeaders, _ResponseBody} =
              oz_endpoint:auth_request(Auth, URN, patch, Body),
          ok
      end).
  