interface GetAttachmentThumbnail {
    fallbackToDefault?: boolean;
    height?: number;
    id: string;
    redirect?: boolean;
    width?: number;
}

Properties

fallbackToDefault?: boolean

Whether a default thumbnail is returned when the requested thumbnail is not found.

height?: number

The maximum height to scale the thumbnail to.

id: string

The ID of the attachment.

redirect?: boolean

Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.

width?: number

The maximum width to scale the thumbnail to.