{ "opencollection": "1.0.0", "info": { "name": "Humanitec AccountType Environment API", "version": "0.28.24" }, "items": [ { "info": { "name": "Environment", "type": "folder" }, "items": [ { "info": { "name": "List all Environments.", "type": "http" }, "http": { "method": "GET", "url": "https://api.humanitec.io/orgs/:orgId/apps/:appId/envs", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "The Organization ID.\n\n" }, { "name": "appId", "value": "", "type": "path", "description": "The Application ID.\n\n" } ] }, "docs": "Lists all of the Environments in the Application." }, { "info": { "name": "Add a new Environment to an Application.", "type": "http" }, "http": { "method": "POST", "url": "https://api.humanitec.io/orgs/:orgId/apps/:appId/envs", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "The Organization ID.\n\n" }, { "name": "appId", "value": "", "type": "path", "description": "The Application ID.\n\n" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new Environment of the specified Type and associates it with the Application specified by `appId`.\n\nThe Environment is also initialized to the **current or past state of Deployment in another Environment**. This ensures that every Environment is derived from a previously known state. This means it is not possible to create a new Environment for an Application until at least one Deployment has occurred. (The Deployment does not have to be successful.)\n\nThe Type of the Environment must b" }, { "info": { "name": "Get a specific Environment.", "type": "http" }, "http": { "method": "GET", "url": "https://api.humanitec.io/orgs/:orgId/apps/:appId/envs/:envId", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "The Organization ID.\n\n" }, { "name": "appId", "value": "", "type": "path", "description": "The Application ID.\n\n" }, { "name": "envId", "value": "", "type": "path", "description": "The Environment ID.\n\n" } ] }, "docs": "Gets a specific Environment in an Application." }, { "info": { "name": "Update a specific Environment.", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.humanitec.io/orgs/:orgId/apps/:appId/envs/:envId", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "The Organization ID.\n\n" }, { "name": "appId", "value": "", "type": "path", "description": "The Application ID.\n\n" }, { "name": "envId", "value": "", "type": "path", "description": "The Environment ID.\n\n" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a specific Environment in an Application." }, { "info": { "name": "Delete a specific Environment.", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.humanitec.io/orgs/:orgId/apps/:appId/envs/:envId", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "The Organization ID.\n\n" }, { "name": "appId", "value": "", "type": "path", "description": "The Application ID.\n\n" }, { "name": "envId", "value": "", "type": "path", "description": "The Environment ID.\n\n" } ] }, "docs": "Deletes a specific Environment in an Application.\n\nDeleting an Environment will also delete the Deployment history of the Environment.\n\n_Deletions are currently irreversible._" }, { "info": { "name": "Rebase to a different Deployment.", "type": "http" }, "http": { "method": "PUT", "url": "https://api.humanitec.io/orgs/:orgId/apps/:appId/envs/:envId/from_deploy_id", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "The Organization ID.\n\n" }, { "name": "appId", "value": "", "type": "path", "description": "The Application ID.\n\n" }, { "name": "envId", "value": "", "type": "path", "description": "The Environment ID.\n\n" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Rebasing an Environment means that the next Deployment to the Environment will be based on the Deployment specified in the rebase rather than the last one in the Environment. The Deployment to rebase to can either be current or a previous Deployment. The Deployment can be from any Environment of the same Application.\n\n_Running code will only be affected on the next Deployment to the Environment._\n\nCommon use cases for rebasing an Environment:\n\n* _Rollback_: Rebasing to a previous Deployment in t" } ] } ], "bundled": true }