{
  "opencollection": "1.0.0",
  "info": {
    "name": "Infisical Admin Environments API",
    "version": "0.0.1"
  },
  "items": [
    {
      "info": {
        "name": "Environments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GET /api/v1/workspace/{workspaceId}/environments/{envId}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v1/workspace/:workspaceId/environments/:envId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the project the environment belongs to."
              },
              {
                "name": "envId",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to fetch."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get Environment"
        },
        {
          "info": {
            "name": "GET /api/v1/workspace/environments/{envId}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v1/workspace/environments/:envId",
            "params": [
              {
                "name": "envId",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to fetch."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get Environment by ID"
        },
        {
          "info": {
            "name": "POST /api/v1/workspace/{workspaceId}/environments",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://us.infisical.com/api/v1/workspace/:workspaceId/environments",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to create the environment in."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create environment"
        },
        {
          "info": {
            "name": "PATCH /api/v1/workspace/{workspaceId}/environments/{id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://us.infisical.com/api/v1/workspace/:workspaceId/environments/:id",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to update the environment in."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update environment"
        },
        {
          "info": {
            "name": "DELETE /api/v1/workspace/{workspaceId}/environments/{id}",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://us.infisical.com/api/v1/workspace/:workspaceId/environments/:id",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to delete the environment from."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to delete."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete environment"
        },
        {
          "info": {
            "name": "getEnvironmentById",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/environments/:envId",
            "params": [
              {
                "name": "envId",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to fetch."
              },
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project the environment belongs to."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get Environment by ID"
        },
        {
          "info": {
            "name": "createEnvironment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/environments",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to create the environment in."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create environment"
        },
        {
          "info": {
            "name": "updateEnvironment",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/environments/:id",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to update the environment in."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update environment"
        },
        {
          "info": {
            "name": "deleteEnvironment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/environments/:id",
            "params": [
              {
                "name": "hardDelete",
                "value": "",
                "type": "query",
                "description": "When true, permanently removes the environment. When false or omitted, the environment is soft-deleted (preserved and scheduled for permanent deletion after a grace period) and hidden from subsequent reads."
              },
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to delete the environment from."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the environment to delete."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete environment"
        },
        {
          "info": {
            "name": "restoreEnvironment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/environments/:id/restore",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project the environment belongs to."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the soft-deleted environment to restore."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Restore a soft-deleted environment"
        }
      ]
    }
  ],
  "bundled": true
}