Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to publish a Postman collection documentation using the CLI command.
Postman
postman [1] publish collection.json Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' instead of 'docs' causes the command to run tests instead of publishing.
Using 'test' or 'open' are unrelated commands.
✗ Incorrect
The correct command to publish documentation in Postman CLI is 'postman docs publish'.
2fill in blank
mediumComplete the code to specify the environment file when publishing documentation.
Postman
postman docs publish collection.json --environment [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using just 'env' or 'environment' without file extension causes file not found error.
Using 'env.json' if the file is named differently.
✗ Incorrect
The environment file is usually a JSON file named 'environment.json' to specify variables.
3fill in blank
hardFix the error in the command to publish documentation with a specific workspace.
Postman
postman docs publish collection.json --workspace [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using workspace name instead of ID causes command failure.
Using generic words like 'workspace' or 'workspaceId' instead of actual ID.
✗ Incorrect
The workspace must be specified by its unique ID, not by name or generic terms.
4fill in blank
hardFill both blanks to correctly publish documentation with a collection and environment file.
Postman
postman docs publish [1] --environment [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'collection.yaml' instead of JSON format.
Using 'env.json' if the environment file is named differently.
✗ Incorrect
The collection file is 'collection.json' and the environment file is 'environment.json' for publishing.
5fill in blank
hardFill all three blanks to publish documentation with collection, environment, and workspace ID.
Postman
postman docs publish [1] --environment [2] --workspace [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'collection.yaml' instead of JSON.
Using workspace name instead of ID.
Omitting the workspace option when required.
✗ Incorrect
Use 'collection.json' for the collection, 'environment.json' for environment, and the workspace's unique ID to publish documentation.