action getpostman_update_environment { label: "Update Environment" description: "This endpoint replaces an existing environment.\n\nA sample body is added to the request that conforms to the following JSON schema:\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"environment\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 254,\n \"minLength\": 1\n },\n \"values\": {\n \"type\": \"array\",\n \"maxItems\": 100,\n \"additionalItems\": false,\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"key\": {\n \"type\": \"string\",\n \"maxLength\": 254,\n \"minLength\": 1\n },\n \"value\": {\n \"type\": \"string\",\n \"maxLength\": 254,\n \"minLength\": 1\n },\n \"type\": {\n \"type\": \"string\"\n },\n \"enabled\": {\n \"type\": \"boolean\"\n }\n },\n \"required\": [\n \"key\",\n \"value\"\n ]\n }\n }\n }\n }\n },\n \"required\": [\n \"environment\"\n ]\n}\n```\n\nOn successful updation of the environment, the API returns the environment name and `id`.\n\n> Requires API Key as `X-Api-Key` request header or `apikey` URL query parameter." provider: getpostman method: PUT path: "/environments/{environment_uid}" encoding: json input: { type: "object" properties: { environment: { type: "object" properties: { name: { type: "string" } values: { type: "array" items: { type: "object" properties: { key: { type: "string" } value: { type: "string" } } } } } } } } output: { type: "object" properties: { environment: { type: "object" properties: { id: { type: "string" } name: { type: "string" } uid: { type: "string" } } } } } }