add_postman_collection_variable
Adds a variable to a Postman collection file. Specify the file path and variable details (key, value, type) to update the collection.
Instructions
Add a variable to the Postman collection
Args:
file_path: The path to the Postman collection file (string)
variable: The variable dictionary with keys like key, value, type, etc. (dict)
Example: {
"key": "base_url",
"value": "https://api.example.com",
"type": "string"
}
Returns:
The updated Postman collection data (dict)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| variable | Yes |