(self, from_path: base.cid_t, to_path: base.cid_t, *,
	           unpin: bool = True, **kwargs: base.CommonArgs)
return self._client.request('/pin/update', args, decoder='json', **kwargs)
Replaces one pin with another
		
		Updates one pin to another, making sure that all objects in the new pin
		are local. Then removes the old pin. This is an optimized version of
		using first using :meth:`~ipfshttpclient.Client.pin.add` to add a new pin
		for an object and then using :meth:`~ipfshttpclient.Client.pin.rm` to remove
		the pin for the old object.
		
		.. code-block:: python
		
			>>> client.pin.update("QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P",
			...              "QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH")
			{"Pins": ["/ipfs/QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P",
					  "/ipfs/QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH"]}
		
		Parameters
		----------
		from_path
			Path to the old object
		to_path
			Path to the new object to be pinned
		unpin
			Should the pin of the old object be removed?
		
		Returns
		-------
			dict
		
		+------+-------------------------------------------------------------+
		| Pins | List of IPFS objects that have been affected by this action |
		+------+-------------------------------------------------------------+
Replaces one pin with another
		
		Updates one pin to another, making sure that all objects in the new pin
		are local. Then removes the old pin. This is an optimized version of
		using first using :meth:`~ipfshttpclient.Client.pin.add` to add a new pin
		for an object and then using :meth:`~ipfshttpclient.Client.pin.rm` to remove
		the pin for the old object.
		
		.. code-block:: python
		
			>>> client.pin.update("QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P",
			...              "QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH")
			{"Pins": ["/ipfs/QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P",
					  "/ipfs/QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH"]}
		
		Parameters
		----------
		from_path
			Path to the old object
		to_path
			Path to the new object to be pinned
		unpin
			Should the pin of the old object be removed?
		
		Returns
		-------
			dict
		
		+------+-------------------------------------------------------------+
		| Pins | List of IPFS objects that have been affected by this action |
		+------+-------------------------------------------------------------+
Replaces one pin with another Updates one pin to another making sure that all objects in the new pin are local . Then removes the old pin . This is an optimized version of using first using : meth : ~ipfshttpclient . Client . pin . add to add a new pin for an object and then using : meth : ~ipfshttpclient . Client . pin . rm to remove the pin for the old object . .. code - block :: python >>> client . pin . update ( QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P ... QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH ) { Pins : [ / ipfs / QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P / ipfs / QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH ] } Parameters ---------- from_path Path to the old object to_path Path to the new object to be pinned unpin Should the pin of the old object be removed? Returns ------- dict + ------ + ------------------------------------------------------------- + | Pins | List of IPFS objects that have been affected by this action | + ------ + ------------------------------------------------------------- +
def update(self, from_path: base.cid_t, to_path: base.cid_t, *,
	           unpin: bool = True, **kwargs: base.CommonArgs):
		"""Replaces one pin with another
		
		Updates one pin to another, making sure that all objects in the new pin
		are local. Then removes the old pin. This is an optimized version of
		using first using :meth:`~ipfshttpclient.Client.pin.add` to add a new pin
		for an object and then using :meth:`~ipfshttpclient.Client.pin.rm` to remove
		the pin for the old object.
		
		.. code-block:: python
		
			>>> client.pin.update("QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P",
			...              "QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH")
			{"Pins": ["/ipfs/QmXMqez83NU77ifmcPs5CkNRTMQksBLkyfBf4H5g1NZ52P",
					  "/ipfs/QmUykHAi1aSjMzHw3KmBoJjqRUQYNkFXm8K1y7ZsJxpfPH"]}
		
		Parameters
		----------
		from_path
			Path to the old object
		to_path
			Path to the new object to be pinned
		unpin
			Should the pin of the old object be removed?
		
		Returns
		-------
			dict
		
		+------+-------------------------------------------------------------+
		| Pins | List of IPFS objects that have been affected by this action |
		+------+-------------------------------------------------------------+
		"""
		kwargs.setdefault("opts", {})["unpin"] = unpin
		
		args = (str(from_path), str(to_path))
		return self._client.request('/pin/update', args, decoder='json', **kwargs)
def update ( self , from_path : base . cid_t , to_path : base . cid_t , * , unpin : bool = True , * * kwargs : base . CommonArgs ) : kwargs . setdefault ( "opts" , { } ) [ "unpin" ] = unpin args = ( str ( from_path ) , str ( to_path ) ) return self . _client . request ( '/pin/update' , args , decoder = 'json' , * * kwargs )