action getpostman_create_environment { label: "Create Environment" description: "A 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\": { \"type\": \"string\" },\n \"enabled\": { \"type\": \"boolean\" }\n },\n \"required\": [\"key\", \"value\"]\n }\n }\n },\n \"required\": [\"name\"]\n }\n },\n \"required\": [\"environment\"]\n}\n```\n\nOn successful creation of the environment, the API returns the environment name and `id`.\n\nYou can also specify the context of a workspace to create an environment in directly by passing the `workspace` as a query param.\n\n> Requires API Key as `X-Api-Key` request header or `apikey` URL query parameter." provider: getpostman method: POST path: "/environments" 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" } } } } } }