@@ -309,7 +309,7 @@ describe("Media library APIs", function () {
309309
310310 it ( 'Rename file - default purgeCache value' , function ( done ) {
311311 const scope = nock ( 'https://api.imagekit.io' )
312- . post ( `/v1/files/rename` )
312+ . put ( `/v1/files/rename` )
313313 . basicAuth ( { user : initializationParams . privateKey , pass : '' } )
314314 . reply ( function ( uri , requestBody ) {
315315 expect ( this . req . path ) . equal ( `/v1/files/rename` )
@@ -330,7 +330,7 @@ describe("Media library APIs", function () {
330330
331331 it ( 'Rename file' , function ( done ) {
332332 const scope = nock ( 'https://api.imagekit.io' )
333- . post ( `/v1/files/rename` )
333+ . put ( `/v1/files/rename` )
334334 . basicAuth ( { user : initializationParams . privateKey , pass : '' } )
335335 . reply ( function ( uri , requestBody ) {
336336 expect ( this . req . path ) . equal ( `/v1/files/rename` )
@@ -1141,7 +1141,7 @@ describe("Media library APIs", function () {
11411141
11421142 it ( 'Rename file' , function ( done ) {
11431143 const scope = nock ( 'https://api.imagekit.io' )
1144- . post ( `/v1/files/rename` )
1144+ . put ( `/v1/files/rename` )
11451145 . basicAuth ( { user : initializationParams . privateKey , pass : '' } )
11461146 . reply ( 204 , dummyAPISuccessResponse )
11471147
@@ -1508,7 +1508,7 @@ describe("Media library APIs", function () {
15081508
15091509 it ( 'Rename file' , function ( done ) {
15101510 const scope = nock ( 'https://api.imagekit.io' )
1511- . post ( `/v1/files/rename` )
1511+ . put ( `/v1/files/rename` )
15121512 . basicAuth ( { user : initializationParams . privateKey , pass : '' } )
15131513 . reply ( 500 , dummyAPIErrorResponse )
15141514
0 commit comments