Cerbos JavaScript SDK
    Preparing search index...

    Interface ReplaceFilesRequest

    interface ReplaceFilesRequest {
        allowUnchanged?: boolean;
        changeDetails?: ChangeDetails;
        condition?: FileModificationCondition;
        contents: ReplaceFilesContents;
        storeId: string;
    }
    Index

    Properties

    allowUnchanged?: boolean

    Allow replacements that do not change the state of the store.

    If false (the default), an OperationDiscarded error will be thrown if the contents match those of the store. If true, no error will be thrown and the current store version will be returned.

    false

    changeDetails?: ChangeDetails

    Metadata describing the change being made.

    A condition that must be met for the replacement to be made.

    Files to upload to the store.

    storeId: string

    ID of the store in which to replace files.