Apptio Customrole API

Operations for CustomRoles

GitHub OpenAPI

Operations 2

GET /api/v2/customroles/environment/{environmentId} Get all CustomRoles in an environment #
GET /api/v2/customroles Filtered #

Specifications

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-customrole-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-customrole-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  license: {}
  title: Apptio Customrole API
  description: Operations for CustomRoles
tags:
- name: customrole
  description: Operations for CustomRoles
paths:
  /api/v2/customroles/environment/{environmentId}:
    get:
      tags:
      - customrole
      summary: Get all CustomRoles in an environment
      description: 'Gets a list of CustomRoles in the specified Environment.


        URL Path Parameters:

        environmentId: UUID of the environment to read


        Optional Query Parameters:

        appTypes: Comma separated list of ApplicationTypes to filter CustomRoles by. Defaults to empty string


        Returns:

        List of CustomRoles present on the environment


        Permissions:

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

        Additionally, Frontdoor level permissions allow READ on the following set of environments

        - manageEnvironment or readEnvironment allows for READ on any internal non-production Environment

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

        - manageEnvironment or readEnvironment and manageProduction allows for READ on any internal Environment (production or non-production)

        - manageEnvironment or readEnvironment, manageProduction, and manageExternal allows for READ on any internal, external, or production Environment'
      operationId: getCustomRoles_1
      parameters:
      - name: environmentId
        in: path
        description: UUID of the environment to read
        required: true
        schema:
          type: string
          format: uuid
      - name: appTypes
        in: query
        description: Comma separated list of ApplicationTypes to filter CustomRoles by
        schema:
          $ref: '#/components/schemas/StringSetParam'
      - name: withPermission
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Requested list of CustomRoles
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRole'
        '400':
          description: Invalid data submitted
        '403':
          description: You do not have the required permissions to perform this operation
        '404':
          description: Environment not found
  /api/v2/customroles:
    get:
      tags:
      - customrole
      operationId: filtered
      parameters:
      - name: withPermission
        in: query
        schema:
          type: string
      - name: start
        in: query
        required: true
        schema:
          type: object
          properties:
            asInt:
              type: integer
              format: int32
            empty:
              type: boolean
            present:
              type: boolean
          default: '0'
      - name: pageSize
        in: query
        required: true
        schema:
          type: object
          properties:
            asInt:
              type: integer
              format: int32
            empty:
              type: boolean
            present:
              type: boolean
          default: '100'
      responses:
        '200':
          description: Requested list of CustomRoles
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRole'
        '403':
          description: You do not have the required permissions to perform this operation
      summary: Filtered
      x-summary-source: derived
components:
  schemas:
    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
    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
    StringSetParam:
      type: object