Cerbos JavaScript SDK
    Preparing search index...

    Interface ModifyFilesRequest

    interface ModifyFilesRequest {
        allowUnchanged?: boolean;
        changeDetails?: ChangeDetails;
        condition?: FileModificationCondition;
        operations: FileOperation[];
        storeId: string;
    }
    Index

    Properties

    allowUnchanged?: boolean

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

    If false (the default), an OperationDiscarded error will be thrown if the modifications leave the store unchanged. 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 modifications to be made.

    operations: FileOperation[]

    Modifications to make.

    storeId: string

    ID of the store in which to modify files.