Replace an environment's data
putEnvironmentReplaces the contents of an existing Postman environment with the provided environment details, including variables and metadata.
Instructions
Replaces all the contents of an environment with the given information.
Note:
The request body size cannot exceed the maximum allowed size of 30MB.
If you receive an HTTP `411 Length Required` error response, manually pass the `Content-Length` header and its value in the request header.
Only shared variable values can be modified through the Postman API. A shared variable is an environment variable with its value synced and stored in the Postman cloud, and can be accessed by your teammates in the environment's workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | No | Information about the environment. | |
| environmentId | Yes | The environment's ID. |