@inrupt/solid-client
    Preparing search index...

    Function createContainerAt

    • Create a Container at the given URL. Some content may optionally be specified, e.g. to add metadata describing the container.

      Throws an error if creating the Container failed, e.g. because the current user does not have permissions to, or because the Container already exists.

      Note that a Solid server will automatically create the necessary Containers when storing a Resource; i.e. there is no need to call this function if it is immediately followed by [[saveSolidDatasetAt]] or [[overwriteFile]].

      Parameters

      • url: string | Url

        URL of the empty Container that is to be created.

      • options: {
            fetch?: (
                input: URL | RequestInfo,
                init?: RequestInit,
            ) => Promise<Response>;
            initialContent?: Readonly<{}>;
        } = {}

        Optional parameter options.fetch: An alternative fetch function to make the HTTP request, compatible with the browser-native fetch API.

        • Optionalfetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>
        • OptionalinitialContent?: Readonly<{}>

      Returns Promise<Readonly<{}> & WithResourceInfo & {}>

      0.2.0