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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/nice:nice-unavailablecodes-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
openapi: 3.2.0
info:
title: Nice Unavailable Codes API
version: v1
description: 'Operations tagged UnavailableCodes across 2 of this provider''s published API definitions: nice-admin-unavailablecodes.json, nice-admin-unavailablecodes-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: UnavailableCodes
description: ': Unavailable Codes Management'
paths:
/unavailable-codes/{unavailableCodeId}/audit-history:
get:
tags:
- UnavailableCodes
summary: Returns a list of audit entries for an unavailable code
description: This API allows to get a list of audit entries for an unavailable code
operationId: get-unavailable-codes-id-audit-history
parameters:
- name: unavailableCodeId
in: path
required: true
description: ID of the Unavailable Code to be obtained
schema:
type: integer
- name: searchString
in: query
required: true
description: Used to filter results to objects with the value in key fields
schema:
type: string
- name: fields
in: query
description: Comma separated list of elements to return in response
schema:
type: string
required: false
- name: top
in: query
description: Number of records to return in the results
schema:
type: integer
required: false
- name: skip
in: query
description: Number of records to skip in the results
schema:
type: integer
required: false
- name: orderBy
in: query
description: Values used to order results before paginating them. Can also specify "asc" or "desc" to specify direction for example "field1 asc,field2 desc,...". Default is asc
schema:
type: string
required: false
- name: startDate
in: query
description: search filter for start date in ISO 8601 time
schema:
type: string
format: date-time
required: false
- name: endDate
in: query
description: search filter for end date in ISO 8601 time
schema:
type: string
format: date-time
required: false
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
businessUnitId:
type: integer
description: ID of business unit
createdBy:
type: string
description: ID of user who created record
modifiedBy:
type: string
description: ID of user who modified record
createdDate:
type: string
description: date of record creation
modifiedDate:
type: string
description: date of record modification
totalRecords:
type: integer
description: total records retrieved
auditHistoryEntries:
type: array
items:
type: object
properties:
auditHistoryID:
type: integer
description: ID of audit history record
columnName:
type: string
description: name of column affected
newValue:
type: string
description: new value of column affected
oldValue:
type: string
description: old value of column affected
date:
type: string
description: date of change for column affected
modifiedBy:
type: integer
description: ID of user who made change for column affected
modifiedByName:
type: string
description: name of user who made change for column affected
'400':
description: <p>Invalid Fields List</p><p>InvalidParameters</p>
'401':
description: Unauthorized
'403':
description: InvalidPermissions
'404':
description: Invalid Unavailable Code Id
'500':
description: ServiceException
/unavailable-codes/{unavailableCodeId}/status:
patch:
tags:
- UnavailableCodes
summary: Change status of existing Unavailable Code By Id
description: Change status of Unavailable Code By Id
operationId: patch-status-by-unavailable-codes-id
parameters:
- name: unavailableCodeId
in: path
required: true
description: The ID of Unavailable Code to be update status
schema:
type: integer
- name: isActive
in: query
required: true
description: Status to be updated
schema:
type: boolean
responses:
'200':
description: Success
'400':
description: Invalid UnavailableCodeId
'401':
description: Invalid Security Profile
'403':
description: Invalid Permissions
'404':
description: NotFound UnavailableCodeId
'500':
description: Service Error - Something unexpected happened
/unavailable-codes/{unavailableCodeId}/teams:
get:
tags:
- UnavailableCodes
summary: Returns a list of assigned teams to an unavailable code
description: Returns a list of assigned teams to an unavailable code by ID
operationId: get-unavailable-codes-id-teams
parameters:
- name: unavailableCodeId
in: path
required: true
description: The ID of Unavailable Code to be obtained
schema:
type: integer
- name: searchString
in: query
description: Used to filter results to objects with the value in key fields
schema:
type: string
required: false
- name: fields
in: query
description: Comma separated list of elements to return in response
schema:
type: string
required: false
- name: skip
in: query
description: Number of records to skip in the results
schema:
type: integer
required: false
- name: top
in: query
description: Number of records to return in the results
schema:
type: integer
required: false
- name: orderBy
in: query
description: Values used to order results before paginating them. Can also specify "asc" or "desc" to specify direction for example "field1 asc,field2 desc,...". Default is asc
schema:
type: string
required: false
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
businessUnitId:
type: integer
description: ID of business unit
totalRecords:
type: integer
description: total records obtained
teams:
type: array
items:
type: object
properties:
id:
type: integer
description: id of the assigned team
name:
type: string
description: name of the assigned team
uuid:
type: string
description: Guid of the assigned team
'400':
description: <p>Invalid Fields List</p><p>Invalid parameters</p>
'401':
description: Unauthorized
'403':
description: <p>Invalid Permissions</p><p>Forbidden</p>
'404':
description: <p>Invalid Unavailable Code Id</p><p>Unavailable Code ID was not found</p>
'500':
description: Error has occured while calling external service
post:
tags:
- UnavailableCodes
summary: Assign teams unassigned to an unavailable code
description: This API allows to assign teams unassigned to an unavailable code
operationId: post-unavailable-codes-id-teams
parameters:
- name: unavailableCodeId
in: path
required: true
description: The ID of Unavailable Code to be assigned teams
schema:
type: integer
- name: addAll
in: query
required: true
description: Flag to define if all teams will be assigned or not
schema:
type: boolean
requestBody:
content:
application/json:
schema:
type: object
properties:
teams:
type: array
items:
type: object
properties:
id:
type: string
minLength: 1
maxLength: 80
description: id of the team to be assigned
required:
- id
required:
- teams
description: teams
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
assignedTeams:
type: array
items:
type: object
properties:
teamId:
type: integer
invalidTeams:
type: array
items:
type: object
properties:
teamId:
type: integer
'400':
description: <p>Invalid teamId, must be a valid integer.</p><p>Invalid teams - cannot be null or empty</p><p>Cannot send more than defined records in a single call check API_MaximumUnavailableCodesTeamsPerRequest parameter</p>
'401':
description: Unauthorized
'403':
description: <p>Invalid Permissions</p><p>Forbidden</p><p>Restricted agentId or userId</p>
'404':
description: <p>Invalid unavailableCodeId</p><p>Unavailable Code ID was not found</p>
'500':
description: Error has occured while calling external service
put:
tags:
- UnavailableCodes
summary: Assign Unavailable Code to Teams
description: This method will assign an array of teams to an unavailable code. “unavailableCodeId” may also be referenced as “outStateId” as in the response from GET /unavailable-codes. To remove a team use DELETE /teams/{teamId}/unavailable-codes.
operationId: put-unavailable-codes-id-teams
parameters:
- name: securityUser
in: query
description: SecurityUser
schema:
type: string
required: false
- name: unavailableCodeId
in: path
required: true
description: Unavailable Code Id
schema:
type: integer
requestBody:
content:
application/json:
schema:
type: object
properties:
teams:
type: array
items:
type:
- object
- 'null'
properties:
teamId:
type:
- string
- 'null'
required:
- teams
description: teams
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
error:
type: string
error_Description:
type: string
'400':
description: Invalid parameter 'unavailableCodeId', must be type Int32
'404':
description: Invalid UnavailableCodeId - '{0}', does not exist
delete:
tags:
- UnavailableCodes
summary: Unassign teams assigned to an unavailable code
description: This API allows to unassign teams assigned to an unavailable code
operationId: delete-unavailable-codes-id-teams
parameters:
- name: unavailableCodeId
in: path
required: true
description: The ID of Unavailable Code to be unassigned teams
schema:
type: integer
- name: removeAll
in: query
required: true
description: Flag to define if all teams will be unassigned or not
schema:
type: boolean
requestBody:
content:
application/json:
schema:
type: object
properties:
teams:
type: array
items:
type: object
properties:
id:
type: string
minLength: 1
maxLength: 80
description: id of the team to be unassigned
required:
- id
required:
- teams
description: teams
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
unassignedTeams:
type: array
items:
type: object
properties:
teamId:
type: integer
invalidTeams:
type: array
items:
type: object
properties:
teamId:
type: integer
'400':
description: <p>Invalid teamId, must be a valid integer.</p><p>Invalid teams - cannot be null or empty</p><p>Cannot send more than defined records in a single call check API_MaximumUnavailableCodesTeamsPerRequest parameter</p>
'401':
description: Unauthorized
'403':
description: <p>Invalid Permissions</p><p>Forbidden</p><p>Restricted agentId or userId</p>
'404':
description: <p>Invalid unavailableCodeId</p><p>Unavailable Code ID was not found</p>
'500':
description: Error has occured while calling external service
/unavailable-codes/{unavailableCodeId}/teams/unassigned:
get:
tags:
- UnavailableCodes
summary: Returns a list of unassigned teams to an unavailable code
description: Returns a list of unassigned teams to an unavailable code by ID
operationId: get-unavailable-codes-id-teams-unassigned
parameters:
- name: unavailableCodeId
in: path
required: true
description: The ID of Unavailable Code to be obtained
schema:
type: integer
- name: searchString
in: query
description: Used to filter results to objects with the value in key fields
schema:
type: string
required: false
- name: fields
in: query
description: Comma separated list of elements to return in response
schema:
type: string
required: false
- name: skip
in: query
description: Number of records to skip in the results
schema:
type: integer
required: false
- name: top
in: query
description: Number of records to return in the results
schema:
type: integer
required: false
- name: orderBy
in: query
description: Values used to order results before paginating them. Can also specify "asc" or "desc" to specify direction for example "field1 asc,field2 desc,...". Default is asc
schema:
type: string
required: false
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
businessUnitId:
type: integer
description: ID of business unit
totalRecords:
type: integer
description: total records obtained
teams:
type: array
items:
type: object
properties:
id:
type: integer
description: id of the unassigned team
name:
type: string
description: name of the unassigned team
uuid:
type: string
description: Guid of the unassigned team
'400':
description: <p>Invalid Fields List</p><p>Invalid parameter</p>
'401':
description: Unauthorized
'403':
description: Invalid Permissions
'404':
description: <p>Invalid Unavailable Code Id</p><p>Unavailable Code ID was not found</p>
'500':
description: Error has occured while calling external service
/unavailable-codes/{unavailableCodeId}:
get:
tags:
- UnavailableCodes
summary: Get Unavailable Code Details By Id
operationId: get-unavailable-codes-id
parameters:
- name: unavailableCodeId
in: path
required: true
description: ID of the Unavailable Code to be obtained
schema:
type: integer
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
unavailableCode:
type: object
properties:
id:
type: integer
description: ID of the Unavailable Code
name:
type: string
description: Name of Unavailable Code
isActive:
type: boolean
description: Flag that indicates if Unavailable Code is active or not
isACW:
type: boolean
description: Flag that indicates if Unavailable Code is an after contact work one or not
notes:
type: string
description: Unavailable Code notes
maxLength: 2000
agentTimeout:
type: integer
description: Timeout of the Agent in minutes
'400':
description: 'Invalid UnavailableCodeId '
'401':
description: Invalid Security User
'403':
description: Invalid Permissions
'404':
description: 'Not Found UnavailableCodeId '
'500':
description: 'Something unexpected happened '
put:
tags:
- UnavailableCodes
summary: Updates an existing Unavailable Code record
description: This API allows to update an existing Unavailable Code by ID
operationId: put-unavailable-codes-id
parameters:
- name: unavailableCodeId
in: path
required: true
description: ID of the Unavailable Code to be updated
schema:
type: integer
requestBody:
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
description: Name of Unavailable Code
maxLength: 25
minLength: 1
pattern: ^[^<>]
example: _thisIsValid Name*34
isACW:
type: boolean
description: Flag that indicates if Unavailable Code is an after contact work one or not
agentTimeout:
type: integer
description: Timeout of the Agent in minutes
maximum: 720
minimum: 30
isActive:
type: boolean
description: Flag that indicates if Unavailable Code is active or not
notes:
type: string
description: Unavailable Code notes
pattern: ^[^<>()&]
maxLength: 2000
example: Notes containing letters and also all numbers 1234567890
required: true
description: Unavailable Code to de updated
responses:
'200':
description: Success
'400':
description: <p>Invalid UnavailableCodeName </p><p>InvalidRangeUnavailableCodeName </p><p>Invalid Character UnavailableCodeName </p><p>Invalid UnavailableCodeRangeNote </p><p>Invalid Note </p><p>Invalid Request </p><p>Invalid UnavailableCodeOutOfRangeAgentTimeout </p><p>InvalidUnavailableCodeId happened </p>
'401':
description: 'Invalid SecurityUser '
'403':
description: Invalid Permissions
'404':
description: 'NotFoundUnavailableCodeId happened '
'500':
description: 'Something unexpected happened '
x-refined-from:
- nice-admin-unavailablecodes.json
- nice-admin-unavailablecodes-openapi.yml