'Restores a snapshot for a volume
:param  volume: The volume you\'re restoring the snapshot to.
:type   volume: :class:`StorageVolume`
:param  snapshot: The snapshot you\'re restoring to the volume.
:type   snapshot: :class:`ProfitBricksSnapshot`
:rtype  ``bool``'

def ex_restore_volume_snapshot(self, volume, snapshot):

    action = (volume.extra['href'] + '/restore-snapshot')
    data = {'snapshotId': snapshot.id}
    body = urllib.urlencode(data)
    self.connection.request(action=action, headers={'Content-Type': 'application/x-www-form-urlencoded'}, data=body, method='POST', with_full_url=True)
    return True
