@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Variable LegalHoldValueConst

    LegalHoldValue: { Off: "off"; On: "on" } = ...

    Named constants for the file legal-hold status.

    Type Declaration

    • ReadonlyOff: "off"

      Remove the legal hold.

    • ReadonlyOn: "on"

      Apply the legal hold.

    await object.setLegalHold(fileId, LegalHoldValue.On)