interface UpdateAttachmentProperties {
    attachmentId: string;
    container?: {
        id: string;
        type: string;
    };
    id: string;
    metadata?: {
        comment?: string;
        mediaType?: string;
    };
    title?: string;
    type: string;
    version: {
        number: number;
    };
}

Hierarchy (view full)

Properties

attachmentId: string

The ID of the attachment to update.

container?: {
    id: string;
    type: string;
}

The new content to attach the attachment to.

Type declaration

  • id: string

    The id of the parent content.

  • type: string

    The content type. You can only attach attachments to content of type: page, blogpost.

id: string

The ID of the content that the attachment is attached to.

metadata?: {
    comment?: string;
    mediaType?: string;
}

Type declaration

  • Optional comment?: string

    The comment for this update.

  • Optional mediaType?: string

    The media type of the attachment, e.g. 'img/jpg'.

title?: string

The updated name of the attachment.

type: string

Set this to attachment.

version: {
    number: number;
}

The attachment version. Set this to the current version number of the attachment. Note, the version number only needs to be incremented when updating the actual attachment, not its properties.

Type declaration

  • number: number

    The version number.

Generated using TypeDoc v0.25.12