Apptio Environmentapikey V1 API
Operations for Api Key EnvironmentUsers
Operations for Api Key EnvironmentUsers
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/apptio:apptio-environmentapikey-v1-api"
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.
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: 3.2.0
info:
contact: {}
license: {}
title: Apptio Environmentapikey V1 API
description: Operations for Api Key EnvironmentUsers
tags:
- name: environmentapikey-v1
description: Operations for Api Key EnvironmentUsers
paths:
/api/apikeysaccess/user/{userId}:
get:
tags:
- environmentapikey-v1
summary: Gets the APIKey APIKeyAccess for a User
description: 'Gets the APIKeyAccess based on a User Id or login.
URL Path Parameters:
userId: User Id or login to read the Keys for
Returns:
List For the Specified User
Permissions:
To read the APIKeyAccess for a User, the Logged in User must have permissions to READ the Environment. A User can READ the Environment if they have any Role granted to them onthe 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 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 all Environments'
operationId: getApiKeyAccessForUser
parameters:
- name: userId
in: path
required: true
schema:
maxLength: 80
minLength: 1
type: string
responses:
'200':
description: 'Requested List<APIKeyAccess> '
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyAccess'
'400':
description: Invalid data submitted
'403':
description: You don't have the required permissions to perform this operation.
'404':
description: ApiKey or User not found
/api/apikeysaccess/{apiKeyId}:
get:
tags:
- environmentapikey-v1
summary: Gets the APIKeyAccess based on an Id
description: 'Gets the APIKeyAccess based on an Id.
URL Path Parameters:
apiKeyId: UUID of the APIKey to read
Returns:
List objects for the specified ApiKey.
Permissions:
A User can READ their own APIKeys''s Access. A User can also read APIKey''s Access for another Users account if they have permissions to UPDATE the User and they can READ the environment or if they have the MSP Admin role on the MSP Provider environment in the parent domain. A User can UPDATE Users of an authentication Domain if they have the ''manageUser'' permission on any Environment under a Customer who has the same authentication Domain and they belong to the same authentication Domain as the User, or they have the ''manageDomainUser'' permission on any Environment under a Customer who has the same Authentication Domain as the User.
Additionally, Frontdoor level permissions allow for UPDATE on the following sets of Authentication Domains.
- manageUser allows for UPDATE of any internal authentication Domain.
- manageUser and manageExternal allows for UPDATE of any authentication Domain.
To read the APIKey''s Access, the Logged in User must have permissions to READ the Environment. A User can READ the Environment if they have any Role granted to them on the Environment.
Additionally, Frontdoor level permissions allow for READ on the following sets 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 all Environments'
operationId: getApiKeyAccessById
parameters:
- name: apiKeyId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Requested List<ApiKeyAccess> for APIKey
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyAccess'
'400':
description: Invalid data submitted
'403':
description: You don't have the required permissions to perform this operation.
'404':
description: ApiKey OR EnvironmentUser not found
/api/apikeyaccess:
put:
tags:
- environmentapikey-v1
summary: Updates access for an ApiKey
description: 'Updates access for an ApiKey
If the ApiKey already has access to the Environment it''s access will be updated, otherwise access will be created for the ApiKey
Optional Query Parameters:
mergeRoles: Boolean value to specify whether to merge existing roles and new roles or to overwrite existing roles. Defaults to true
JSON Parameters:
ApiKeyAccess: The ApiKeyAccess to associate with the ApiKey
Returns:
ApiKeyAccess object updated
Permissions:
A User can update their own APIKeys''s Roles. A User can also update APIKey''s Roles for another Users account if they have permissions to UPDATE the User and they can UPDATE the environment that the Roles are being granted in or or if they have the MSP Admin role on the MSP Provider environment in the parent domain
A User can UPDATE Users of an authentication Domain if they have the ''manageUser'' permission on any Environment under a Customer who has the same authentication Domain and they belong to the same authentication Domain as the User, or they have the ''manageDomainUser'' permission on any Environment under a Customer who has the same Authentication Domain as the User.
Additionally, Frontdoor level permissions allow for UPDATE on the following sets of Authentication Domains.
- manageUser allows for UPDATE of any internal authentication Domain.
- manageUser and manageExternal allows for UPDATE of any authentication Domain.
To add Roles or CustomRoles an EnvironmentUser, the logged in User must have permissions to UPDATE this environment or they have the MSP Admin role on the MSP Provider environment in the parent domain. A User can UPDATE an Environment if they have the ''manageEnvironment'' permission granted to them on that Environment.
Additionally, Frontdoor level permissions allow for UPDATE on the following sets of environments.
- manageEnvironment allows for UPDATE on any internal non-production Environment
- manageEnvironment and manageExternal allows for UPDATE on any non-production Environment (internal or external)
- manageEnvironment and manageProduction allows for UPDATE on any internal Environment (production or non-production)
- manageEnvironment, manageExternal and manageProduction allows for UPDATE on all Environments'
operationId: updateApiKeyAccess
parameters:
- name: mergeRoles
in: query
schema:
type: boolean
default: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyAccess'
required: true
responses:
'200':
description: APIKey's ApiKeyAccess updated
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyAccess'
'400':
description: Invalid data submitted
'403':
description: You don't have the required permissions to perform this operation.
'404':
description: ApiKey, User OR EnvironmentUser not found
delete:
tags:
- environmentapikey-v1
summary: Removes Access from an APIKey
description: 'Removes Access from an APIKey
JSON Parameters:
ApiKeyAccess: The ApiKeyAccess object containing roles to remove from the APIKey
Permissions:
A User can update their own APIKeys''s Roles. A User can also update APIKey''s Roles for another Users account if they have permissions to UPDATE the User and they can UPDATE the environment that the Roles are being granted in or if they have the MSP Admin role on the MSP Provider environment in the parent domain.
A User can UPDATE Users of an authentication Domain if they have the ''manageUser'' permission on any Environment under a Customer who has the same authentication Domain and they belong to the same authentication Domain as the User, or they have the ''manageDomainUser'' permission on any Environment under a Customer who has the same Authentication Domain as the User.
Additionally, Frontdoor level permissions allow for UPDATE on the following sets of Authentication Domains.
- manageUser allows for UPDATE of any internal authentication Domain.
- manageUser and manageExternal allows for UPDATE of any authentication Domain.
To add Roles or CustomRoles an EnvironmentUser, the logged in User must have permissions to UPDATE this environment. A User can UPDATE an Environment if they have the ''manageEnvironment'' permission granted to them on that Environment.
Additionally, Frontdoor level permissions allow for UPDATE on the following sets of environments.
- manageEnvironment allows for UPDATE on any internal non-production Environment
- manageEnvironment and manageExternal allows for UPDATE on any non-production Environment (internal or external)
- manageEnvironment and manageProduction allows for UPDATE on any internal Environment (production or non-production)
- manageEnvironment, manageExternal and manageProduction allows for UPDATE on all Environments'
operationId: removeAccessFromApiKey
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyAccess'
required: true
responses:
'204':
description: Access remove
'400':
description: Invalid data submitted
'403':
description: You don't have the required permissions to perform this operation.
'404':
description: ApiKey OR EnvironmentUser not found
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
ApiKeyAccess:
type: object
properties:
environment:
type: string
format: uuid
apiKeyId:
type: string
format: uuid
apiKeyName:
type: string
user:
type: string
defaultRoles:
uniqueItems: true
type: array
items:
$ref: '#/components/schemas/Role'
customRoles:
uniqueItems: true
type: array
items:
$ref: '#/components/schemas/CustomRole'
customer:
type: string
environmentName:
type: string
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
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