Apptio Role API

Operations for Roles

GitHub OpenAPI

Operations 4

GET /api/v2/roles Get all Roles #
PUT /api/v2/role/rename Renames an Role #
PUT /api/v2/synchronize/role/permissions Synchronize Role Permissions #
PUT /api/v2/role/permissions Update a Role's Permissions #

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-role-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-role-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  license: {}
  title: Apptio Role API
  description: Operations for Roles
tags:
- name: Role
  description: Operations for Roles
paths:
  /api/v2/roles:
    get:
      tags:
      - Role
      summary: Get all Roles
      description: 'Gets a list of Roles visible to the logged in User.


        Optional Query Parameters:

        applicationType: A comma separated list of ApplicationType names to filter the roles by.

        showInternal: Boolean value on whether to show the full list of roles (including internal permissions/application types). Only useable by Service accounts. Defaults to false.

        detailed: Boolean value on whether or not to show more detailed permissions. Defaults to false.

        targetUser: A comma separated list of User logins or ids the roles are being granted to.

        Returns:

        List of Roles visible to logged in User.


        Permissions:

        No permissions are needed to READ Roles. If the logged in User is internal or a service account, all Roles can be READ. Otherwise, only external Roles can be READ.'
      operationId: getRoles_1
      parameters:
      - name: applicationType
        in: query
        schema:
          $ref: '#/components/schemas/StringSetParam'
      - name: showInternal
        in: query
        schema:
          type: boolean
      - name: detailed
        in: query
        schema:
          type: boolean
          default: false
      - name: withPermission
        in: query
        schema:
          type: string
      - name: targetUser
        in: query
        schema:
          $ref: '#/components/schemas/StringSetParam'
      responses:
        '200':
          description: List all Roles
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
  /api/v2/role/rename:
    put:
      tags:
      - Role
      summary: Renames an Role
      description: 'Renames an Role. Requires Role id or name to find Role to rename.This will also re-write AuditLog history to match the new Role Name.


        JSON Parameters:

        id (takes precedence over name): Id of the Role

        name (only used if id is null): Name of the Role

        newName (required): New name of the Role


        To rename an Role, the logged in User must have Frontdoor level FDAdmin or themanageFrontdoorSettings permission on the role'
      operationId: renameRole
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleRename'
        required: true
      responses:
        '204':
          description: Role renamed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '400':
          description: Invalid data submitted
        '404':
          description: Role NOT found
        '403':
          description: You don't have the required permissions to perform this operation.
  /api/v2/synchronize/role/permissions:
    put:
      tags:
      - Role
      summary: Synchronize Role Permissions
      description: 'Synchronize Role Permissions. Calls PUT api/v2/role/permissions on each configured Frontdoor instance.

        Returns:

        The api response from each Frontdoor instance


        JSON Parameters:

        name: Name of the role

        permsToAdd: (Optional) JSON array of Permission objects. Defaults to an empty array of permsToRemove: (Optional) JSON array of Permission objects. Defaults to an empty array of

        Permissions:

        To globally update a Role, the logged in user must have manageRole on the Frontdoor environment.'
      operationId: synchronizeRolePermissions
      parameters:
      - name: dryRun
        in: query
        schema:
          type: string
          default: 'FALSE'
          enum:
          - 'FALSE'
          - 'TRUE'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RolePermissions'
        required: true
      responses:
        '200':
          description: Role updated across synchronization regions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '400':
          description: Invalid data submitted
        '404':
          description: Role specified does not exist
        '403':
          description: You don't have the required permissions to perform this operation.
  /api/v2/role/permissions:
    put:
      tags:
      - Role
      summary: Update a Role's Permissions
      description: 'Updates a Role''s Permissions. Requires Role name to find Role to update.

        Any optional fields that are not specified or left empty will not be updated.


        JSON Parameters:

        name: (Key) Name of the Role

        permsToAdd: (Optional) JSON array of Permission objects to add

        permsToRemove: (Optional) JSON array of Permission objects to remove


        Returns:

        ChangeSummary containing changes made to the updated Role object


        Permissions:

        To update a Role, the logged in User must have Frontdoor level permissions.

        - manageRole allows for UPDATE of any Role'
      operationId: updateRolePermissions
      parameters:
      - name: dryRun
        in: query
        schema:
          type: string
          default: 'FALSE'
          enum:
          - 'FALSE'
          - 'TRUE'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RolePermissions'
        required: true
      responses:
        '200':
          description: Role Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '400':
          description: Invalid data submitted
        '404':
          description: Role specified does not exist
        '403':
          description: You don't have the required permissions to perform this operation.
components:
  schemas:
    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
    StringSetParam:
      type: object
    RolePermissions:
      required:
      - name
      type: object
      properties:
        name:
          type: string
        permsToAdd:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        permsToRemove:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Permission'
    RoleRename:
      required:
      - newName
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        newName:
          type: string
    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