0
0
Postmantesting~10 mins

Collection sharing in Postman - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to export a Postman collection as a JSON file.

Postman
pm.collection.toJSON().[1]('my_collection.json');
Drag options to blanks, or click blank then click option'
Adownload
BwriteFile
Cexport
Dsave
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'save' instead of 'download' which is not a valid method here.
Confusing 'export' with a method on the collection object.
2fill in blank
medium

Complete the code to share a collection link with team members.

Postman
pm.collection.share([1]: 'team@example.com'});
Drag options to blanks, or click blank then click option'
Arecipient
Bemail
Cto
Daddress
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'to' or 'recipient' which are not recognized keys in this context.
Using 'address' which is too generic.
3fill in blank
hard

Fix the error in the code to correctly import a shared collection JSON file.

Postman
pm.collection.import([1]: 'shared_collection.json'});
Drag options to blanks, or click blank then click option'
Apath
Bfile
Csource
DfilePath
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'filePath' or 'path' which are not valid keys here.
Using 'file' which is ambiguous.
4fill in blank
hard

Fill both blanks to create a new shared workspace and add a collection to it.

Postman
pm.workspaces.[1]([2]: 'New Team Workspace'}).addCollection('My Collection');
Drag options to blanks, or click blank then click option'
Acreate
Bname
Ctitle
Dbuild
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'title' instead of 'name' which is not the correct key.
Using 'build' which is not a method here.
5fill in blank
hard

Fill all three blanks to update collection permissions for a user.

Postman
pm.collection.permissions.update([1]: 'collectionId123', [2]: 'user@example.com', [3]: 'read'});
Drag options to blanks, or click blank then click option'
AcollectionId
Bemail
CaccessLevel
Dpermission
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'permission' instead of 'accessLevel' which is not the correct key.
Mixing up the order of keys.