class GdsApi::AssetManager
def restore_asset(id)
- Example: Restore a deleted file -
Raises:
-
(HTTPErrorResponse)
- if the request returns an error
Returns:
-
(GdsApi::Response)
- The wrapped http response from the api. Behaves
Parameters:
-
id
(String
) -- The asset identifier (a UUID).
def restore_asset(id) post_json("#{base_url}/assets/#{id}/restore") end