Complete the code to export a Postman collection as a JSON file.
pm.collection.toJSON().[1]('my_collection.json');
The download method saves the collection as a JSON file for sharing.
Complete the code to share a collection link with team members.
pm.collection.share([1]: 'team@example.com'});
The email key specifies the recipient's email address to share the collection.
Fix the error in the code to correctly import a shared collection JSON file.
pm.collection.import([1]: 'shared_collection.json'});
The source key is used to specify the file or URL to import the collection from.
Fill both blanks to create a new shared workspace and add a collection to it.
pm.workspaces.[1]([2]: 'New Team Workspace'}).addCollection('My Collection');
The create method makes a new workspace, and name sets its name.
Fill all three blanks to update collection permissions for a user.
pm.collection.permissions.update([1]: 'collectionId123', [2]: 'user@example.com', [3]: 'read'});
collectionId identifies the collection, email specifies the user, and accessLevel sets the permission type.
