interface UpdateDumpRequest

Passed to PUT /api/dumps/:dumpId by the edit page, and by the dump page's inline title edit. A field left out stays as it is.

Properties

optional
url: string

Ignored for a file dump. A changed link has its preview fetched again.

optional
title: string
optional
slug: string

A new slug, which the edit page's slug field sends. A title change never changes the slug by itself.

optional
comment: string | null

null removes the note.

optional
isPrivate: boolean
optional
categoryIds: string[]

Replaces the current categories.

Usage

import { type UpdateDumpRequest } from "shared/dump.ts";