diff --git a/javascript/src/iframe/viamapi-iframe.js b/javascript/src/iframe/viamapi-iframe.js
index 866de09836877af4e9aa04b7a50fcca5d2d48744..a6223b1ed1e88e079bad142113f89330c743d2dc 100644
--- a/javascript/src/iframe/viamapi-iframe.js
+++ b/javascript/src/iframe/viamapi-iframe.js
@@ -1234,7 +1234,7 @@ const connection = Penpal.connectToParent({
     },
 
     // WOPI
-    getPassports: async fileId => {
+    getPassports: async resourceID => {
       const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
 
       if (
@@ -1245,7 +1245,7 @@ const connection = Penpal.connectToParent({
         return encodeResponse("400", "", "Identity not authenticated");
       }
 
-      const response = await wopiAPI.getPassports(fileId);
+      const response = await wopiAPI.getPassports(resourceID);
       return response.data;
     },
 
diff --git a/javascript/src/iframe/wopiapi-iframe.js b/javascript/src/iframe/wopiapi-iframe.js
index 24283fc69c29dd844caf10569679733d18def100..3c5526a75e0168e3032375adb2bee27cb27d97a6 100644
--- a/javascript/src/iframe/wopiapi-iframe.js
+++ b/javascript/src/iframe/wopiapi-iframe.js
@@ -2,7 +2,7 @@ const axios = require('axios');
 
 function WopiAPI() {}
 
-WopiAPI.prototype.getPassports = function (fileID) {
+WopiAPI.prototype.getPassports = function (resourceID, contentType) {
   const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
   const requestConfig = {
     url: `${window.WOPI_URL}getPassports`,
@@ -12,13 +12,15 @@ WopiAPI.prototype.getPassports = function (fileID) {
       uuid,
       token,
       deviceHash,
-      fileID: encodeURI(fileID)
+      resourceID: encodeURI(resourceID),
+      contentType: encodeURI(contentType)
     }
   };
 
   return axios(requestConfig);
 };
 
+//TODO rewrite put document to use resourceID and contentType
 WopiAPI.prototype.putDocument = function (path, accessToken, file) {
   const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
   path = path[0] === "/" ? path : `/${path}`;