Apptio Environment V1 API

Operations for Environments

GitHub OpenAPI

Operations 10

PUT /api/environment Updates an Environment #
POST /api/environment Create an Environment #
DELETE /api/environment Delete an Environment #
GET /api/environment/{id} Get Environment by id #
GET /api/environments/applicationtype/{appType} Gets Environments by ApplicationType #
GET /api/environments/application/{appId} Gets Environments by Application #
GET /api/environments/{customer} Gets Environments by Customer #
GET /api/environment/{customer}/{name} Get an Environment by Customer and Environment name #
PUT /api/environment/rename Renames an Environment #
PUT /api/environment/provisioningsettings Update the Provisioning settings of an Environment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/apptio:apptio-environment-v1-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

apptio-environment-v1-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  license: {}
  title: Apptio Environment V1 API
  description: Operations for Environments
tags:
- name: environment-v1
  description: Operations for Environments
paths:
  /api/environment:
    put:
      tags:
      - environment-v1
      summary: Updates an Environment
      description: 'Updates an Environment. Requires Environment ID to find the Environment to update.

        It is not possible to rename an Environment through this API, to rename an environment use the rename API instead.


        JSON Parameters:

        Id: (Key) Id of the Environment

        applications: (Optional) JSON array of EnvironmentApplication objects to entitle to the Environment. Defaults to an empty array

        customRoles: (Optional) JSON array of CustomRole objects to create for the Environment. Defaults to an empty array

        defaultApplication: (Optional) UUID of the EnvironmentApplication to specify as the default Application for the Environment

        defaultApplicationEndpoint: (Optional) UUID of the ApplicationEndpoint to specify as the default ApplicationEndpoint for the Environment

        ignoreDomainDefaultRole: (Optional) boolean flag to specify if the Environment should ignore SSO provided roles.

        production: (Optional) boolean flag to specify if the Environment is production. (Requires FDAdmin)


        Optional Query Parameters:

        keepSSOGrantedEnvUsers: If true, retain SSO-granted users when the Environment stops honoring SSO-provided roles. Defaults to false


        Returns:

        Environment object that was created


        Permissions:

        To update an Environment, the logged in User must have the manageEnvironment permission on the Environment.

        Additionally, Frontdoor level permissions allow for UPDATE on the following sets of Environments.

        - manageEnvironment allows for UPDATE of an internal Environment

        - manageEnvironment and manageExternal allows for UPDATE of any Environment (internal or external)

        - manageEnvironment, manageExternal and manageProduction allows for UPDATE of any Environment'
      operationId: updateEnvironment
      parameters:
      - name: keepSSOGrantedEnvUsers
        in: query
        schema:
          type: boolean
          default: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Environment'
        required: true
      responses:
        '200':
          description: Environment updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid data submitted
        '404':
          description: Environment NOT found
        '403':
          description: You don't have the required permissions to perform this operation. If you are trying to entitle an application, make sure the customer is entitled to that application first.
    post:
      tags:
      - environment-v1
      summary: Create an Environment
      description: 'Create an Environment. Environment''s internal/external status will be the same as the Customer in which it is created.


        JSON Parameters:

        name: Name of the Environment

        customer: Name of the Customer the Environment should be created for

        applications: (Optional) JSON array of EnvironmentApplication objects to entitle to the Environment. Defaults to an empty array

        production: (Optional) boolean flag to specify if the Environment is a production Environment. Defaults to false

        defaultApplication: (Optional) UUID of the EnvironmentApplication to specify as the default Application for the Environment

        ignoreDomainDefaultRole: (Optional) boolean flag to specify if the Environment should ignore SSO provided roles. Defaults to false


        Returns:

        Environment object that was created


        Permissions:

        To create an Environment, the logged in User must have Frontdoor level permissions.

        - manageEnvironment allows for CREATE of an internal Environment

        - manageEnvironment and manageExternal allows for CREATE of any Environment (internal or external)

        - manageEnvironment, manageExternal and manageProduction allows for CREATE of any Environment'
      operationId: createEnvironment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Environment'
        required: true
      responses:
        '201':
          description: Environment created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid data submitted
        '403':
          description: You don't have the required permissions to perform this operation. If you are trying to entitle an application, make sure the customer is entitled to that application first.
    delete:
      tags:
      - environment-v1
      summary: Delete an Environment
      description: 'Deletes an Environment. Requires Environment ID to find Environment to delete.


        JSON Parameters:

        Id: (Key) Id of the Environment


        Constraints:

        Environment to delete must not have any Users with Roles granted in the Environment


        Permissions:

        To delete an Environment, the logged in User must have Frontdoor level permissions.

        - manageEnvironment allows for DELETE of an internal Environment

        - manageEnvironment and manageExternal allows for DELETE of any Environment (internal or external)

        - manageEnvironment, manageExternal and manageProduction allows for DELETE of any Environment'
      operationId: deleteEnvironment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Environment'
        required: true
      responses:
        '204':
          description: Environment deleted
        '400':
          description: Invalid data submitted
        '404':
          description: Environment NOT found
        '403':
          description: You don't have the required permissions to perform this operation. Make sure you have removed any Environment Roles granted to users prior to deleting.
  /api/environment/{id}:
    get:
      tags:
      - environment-v1
      summary: Get Environment by id
      description: 'Gets the Environment with specified id.


        URL Path Parameters:

        id: Id of the Environment to read


        Returns:

        Environment object found


        Permissions:

        The logged in User must be able to READ the Environment. A User can READ an Environment if they have any Role granted in the Environment or they have the MSP Admin role on the MSP Provider environment in the parent domain.

        Additionally, Frontdoor level permissions allow for READ on the following sets of Environments.

        - manageEnvironment or readEnvironment allows for READ on any internal Environment

        - manageEnvironment or readEnvironment and manageExternal allows for READ on any Environment (internal or external)

        - manageEnvironment or readEnvironment, manageExternal and manageProduction allows for READ on all Environments'
      operationId: getEnvironment
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Requested Environment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid data submitted
        '404':
          description: Environment NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
  /api/environments/applicationtype/{appType}:
    get:
      tags:
      - environment-v1
      summary: Gets Environments by ApplicationType
      description: 'Gets a list of all Environments that have at least one Application entitled of the given ApplicationType.


        URL Path Parameters:

        appType: ApplicationType which Environments are entitled to


        Returns:

        List of Environments that are entitled to the specified application type


        Permissions:

        The logged in User must have Frontdoor level permissions of readEnvironment or manageEnvironment and manageExternal and manageProduciton perform this operation.'
      operationId: getEnvironmentsByApplicationType
      parameters:
      - name: appType
        in: path
        required: true
        schema:
          maxLength: 80
          minLength: 1
          type: string
      responses:
        '200':
          description: Environments found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '403':
          description: You don't have the required permissions to perform this operation.
        '404':
          description: ApplicationType not found
  /api/environments/application/{appId}:
    get:
      tags:
      - environment-v1
      summary: Gets Environments by Application
      description: 'Gets a list of all Environments that are entitled to the specified Application.


        URL Path Parameters:

        appId: The id of the Application which Environments are entitled to


        Returns:

        List of Environments whom are entitled to the specified application


        Permissions:

        The logged in User must have Frontdoor level permissions of readEnvironment or manageEnvironment and manageExternal and manageProduciton to perform this operation.'
      operationId: getEnvironmentsByApplication
      parameters:
      - name: applicationId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Environments found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid request. Application specified NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
        '404':
          description: Application not found
  /api/environments/{customer}:
    get:
      tags:
      - environment-v1
      summary: Gets Environments by Customer
      description: 'Gets a list of all Environments who share the specified Customer.


        URL Path Parameters:

        customer: Name of the Customer to read


        Returns:

        List of Environments who belong to the specified Customer


        Permissions:

        The logged in User must be able to READ the Environment. A User can READ an Environment if they have any Role granted in the Environment or if they have the MSP Admin role on the MSP Provider environment in the parent domain.

        Additionally, Frontdoor level permissions allow for READ on the following sets of Environments.

        - manageEnvironment or readEnvironment allows for READ on any internal Environment

        - manageEnvironment or readEnvironment and manageExternal allows for READ on any Environment (internal or external)

        - manageEnvironment or readEnvironment, manageExternal and manageProduction allows for READ on all Environments'
      operationId: getEnvironmentsByCustomer
      parameters:
      - name: customer
        in: path
        required: true
        schema:
          maxLength: 80
          minLength: 1
          type: string
      responses:
        '200':
          description: Environments found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid request. Customer specified NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
        '404':
          description: Customer not found
  /api/environment/{customer}/{name}:
    get:
      tags:
      - environment-v1
      summary: Get an Environment by Customer and Environment name
      description: 'Gets the Environment that belongs to the specified Customer with the supplied name.


        URL Path Parameters:

        customer: The name of the Customer to read

        name: The name Environment to read


        Returns:

        Environment object found


        Permissions:

        The logged in User must be able to READ the Environment. A User can READ an Environment if they have any Role granted in the Environment.

        Additionally, Frontdoor level permissions allow for READ on the following sets of Environments.

        - manageEnvironment or readEnvironment allows for READ on any internal Environment

        - manageEnvironment or readEnvironment and manageExternal allows for READ on any Environment (internal or external)

        - manageEnvironment or readEnvironment, manageExternal and manageProduction allows for READ on all Environments'
      operationId: getByName
      parameters:
      - name: customer
        in: path
        required: true
        schema:
          maxLength: 80
          minLength: 1
          type: string
      - name: name
        in: path
        required: true
        schema:
          maxLength: 80
          minLength: 1
          type: string
      responses:
        '200':
          description: Environment found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid request. Customer specified NOT found
        '404':
          description: Environment NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
  /api/environment/rename:
    put:
      tags:
      - environment-v1
      summary: Renames an Environment
      description: 'Renames an Environment. Requires Environment ID to find Environment to rename.This will also re-write AuditLog history to match the new Environment Name.


        JSON Parameters:

        Id: (Key) Id of the Environment

        name: Name of the Environment

        newname: New name of the Environment


        Optional Query Parameters:

        merge: If true, and an Environment already exists with the newname, the existing one will be merged into the existing

        updateAudit: If false, the audit logs will not be updated, defaults to true

        Permissions:

        To rename an Environment, the logged in User must have Frontdoor level FDAdmin or themanageFrontdoorSettings permission on the environment'
      operationId: renameEnvironment
      parameters:
      - name: merge
        in: query
        schema:
          type: boolean
          default: false
      - name: updateAudit
        in: query
        schema:
          type: boolean
          default: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvironmentRename'
        required: true
      responses:
        '200':
          description: Environment renamed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid data submitted
        '404':
          description: Environment NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
  /api/environment/provisioningsettings:
    put:
      tags:
      - environment-v1
      summary: Update the Provisioning settings of an Environment
      description: 'Updates the Provisioning settings of an Environment. Requires the Environment ID to find the Environment to update.

        Any optional fields that are not specified will not be updated.


        JSON Parameters:

        id: (Key) Id of the Environment

        environment_category: (Optional) The EnvironmentCategory. Changing the category will also update the Environment''s production flag to match the new category.

        preventAuthorizedAccess: (Optional) A Boolean flag. If set to true, authorized Apptian access cannot be granted on the Environment. This cannot be enabled on an Environment of category PAID_SUBSCRIPTION. The restriction is evaluated against the category the Environment ends up with, so it applies to the new category when the category is also being changed.


        Returns:

        Environment object that was updated


        Permissions:

        To update an Environment''s Provisioning settings, the logged in User must be a CS Owner of the Environment''s Customer, or have the manageProvisioningData or manageApptianAccess permission on the Frontdoor Environment.'
      operationId: updateEnvironmentProvisioningSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEnvironmentProvisioningSettings'
        required: true
      responses:
        '200':
          description: Environment updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment'
        '400':
          description: Invalid data submitted
        '404':
          description: Environment NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
components:
  schemas:
    EnvironmentRename:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        newName:
          type: string
    UpdateEnvironmentProvisioningSettings:
      required:
      - id
      type: object
      properties:
        id:
          type: string
          format: uuid
        environment_category:
          type: string
        preventAuthorizedAccess:
          type: boolean
    ApplicationEndpointGroup:
      required:
      - environmentId
      - id
      - name
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          maxLength: 80
          minLength: 1
          type: string
        description:
          type: string
        environmentId:
          type: string
          format: uuid
    Role:
      required:
      - name
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          maxLength: 50
          minLength: 1
          type: string
        permissions:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        description:
          type: string
        external:
          type: boolean
        grantable_by:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Role'
        role_filtering:
          type: string
        roleAlwaysShown:
          type: boolean
        applicationTypes:
          uniqueItems: true
          type: array
          items:
            type: string
        oauthSupportedScope:
          type: string
          enum:
          - ROLE_ONLY
          - ROLE_AND_SCOPE
    EnvironmentApplication:
      type: object
      properties:
        internalName:
          type: string
        applicationEntitlementStatus:
          type: string
        id:
          type: string
          format: uuid
        applicationId:
          type: string
          format: uuid
        name:
          maxLength: 80
          minLength: 1
          type: string
        description:
          type: string
        url:
          type: string
        hidden:
          type: boolean
        applicationType:
          type: string
        applicationEndpoints:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/ApplicationEndpoint'
        endpointGroup:
          $ref: '#/components/schemas/ApplicationEndpointGroup'
        entitlement_status:
          type: string
        provisioningMetadata:
          type: object
          additionalProperties:
            type: string
        hideNoAccess:
          type: boolean
        softDeleteDate:
          type: string
          format: date-time
        features:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Feature'
    CustomRole:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          maxLength: 50
          minLength: 1
          type: string
        permissions:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        description:
          type: string
        environment:
          type: string
          format: uuid
    Environment:
      type: object
      properties:
        updatedBy:
          type: string
        id:
          type: string
          format: uuid
        name:
          maxLength: 80
          minLength: 1
          type: string
        applications:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentApplication'
        customRoles:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/CustomRole'
        customer:
          type: string
        createdBy:
          type: string
        external:
          type: boolean
        production:
          type: boolean
        ignoreDomainDefaultRole:
          type: boolean
        endpointGroups:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/ApplicationEndpointGroup'
        environment_category:
          type: string
        category:
          type: string
        supportedLangs:
          uniqueItems: true
          type: array
          readOnly: true
          items:
            type: string
        lastAccessed:
          type: string
          format: date-time
        oauthEnabled:
          type: boolean
        preventAuthorizedAccess:
          type: boolean
    Feature:
      required:
      - name
      type: object
      properties:
        name:
          maxLength: 80
          minLength: 1
          type: string
        applicationTypes:
          uniqueItems: true
          type: array
          items:
            type: string
    ApplicationEndpoint:
      type: object
      properties:
        visibleDefaultRoles:
          uniqueItems: true
          type: array
          writeOnly: true
          items:
            $ref: '#/components/schemas/Role'
        visibleCustomRoles:
          uniqueItems: true
          type: array
          writeOnly: true
          items:
            $ref: '#/components/schemas/CustomRole'
        id:
          type: string
          format: uuid
        url:
          type: string
        name:
          maxLength: 80
          minLength: 1
          type: string
        environment_application_id:
          type: string
          format: uuid
        environment_id:
          type: string
          format: uuid
        application_id:
          type: string
          format: uuid
        sequence:
          type: integer
          format: int32
        visibleRoles:
          uniqueItems: true
          type: array
          items:
            type: string
        hiddenFromNav:
          type: boolean
        endpointGroup:
          $ref: '#/components/schemas/ApplicationEndpointGroup'
    Permission:
      type: object
      properties:
        validBefore:
          type: string
        name:
          maxLength: 80
          minLength: 1
          type: string
        description:
          type: string
        validFrom:
          type: string
        applicationTypes:
          uniqueItems: true
          type: array
          items:
            type: string
        external:
          type: boolean
        defaultRoleOnly:
          type: boolean