function refreshDumpMetadata
refreshDumpMetadata(dumpId: string): Promise<Dump>

Fetches a URL dump's preview again, bypassing the cache, and replaces its title and preview, for POST /api/dumps/:dumpId/metadata. The slug stays.

Parameters

dumpId: string

Return Type

Promise<Dump>

Throws

APIException

404 when there is no such dump, 400 when it isn't a URL dump, 502 when the page can't be reached.

Usage

import { refreshDumpMetadata } from "api/services/dump-service.ts";