diff --git a/guides/plugins/apps/app-sdks/javascript/05-http-client.md b/guides/plugins/apps/app-sdks/javascript/05-http-client.md index e7d414817..e12e7057d 100644 --- a/guides/plugins/apps/app-sdks/javascript/05-http-client.md +++ b/guides/plugins/apps/app-sdks/javascript/05-http-client.md @@ -120,8 +120,11 @@ import { createMediaFolder, uploadMediaFile, getMediaFolderByName } from '@shopw // The same http client as usual const httpClient = ...; -// Create a new folder, optionally you can pass a parent folder id -const folderId = await createMediaFolder(httpClient, 'My Folder'); +// Create a new folder +const folderId = await createMediaFolder(httpClient, 'My Folder', {}); + +// Create a new folder with parent folder id +const folderId = await createMediaFolder(httpClient, 'My Folder', {parentId: "parent-id"}); // Lookup a folder by name const folderId = await getMediaFolderByName(httpClient, 'My Folder');