mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 12:27:48 +00:00
IDNDENALI-9007 - Updated SDIM Patch description to match implementation' by github action: 7614762379
186 lines
5.7 KiB
YAML
186 lines
5.7 KiB
YAML
get:
|
|
tags:
|
|
- Service Desk Integration
|
|
summary: Get a Service Desk integration
|
|
description: Get an existing Service Desk integration by ID. A token with Org Admin or Service Desk Admin authority is required to access this endpoint.
|
|
operationId: getServiceDeskIntegration
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: ID of the Service Desk integration to get
|
|
required: true
|
|
style: simple
|
|
explode: false
|
|
schema:
|
|
type: string
|
|
example: anId
|
|
responses:
|
|
"200":
|
|
description: ServiceDeskIntegrationDto with the given ID
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/ServiceDeskIntegrationDto.yaml'
|
|
'400':
|
|
$ref: '../../v3/responses/400.yaml'
|
|
'401':
|
|
$ref: '../../v3/responses/401.yaml'
|
|
'403':
|
|
$ref: '../../v3/responses/403.yaml'
|
|
'404':
|
|
$ref: '../../v3/responses/404.yaml'
|
|
'429':
|
|
$ref: '../../v3/responses/429.yaml'
|
|
'500':
|
|
$ref: '../../v3/responses/500.yaml'
|
|
security:
|
|
- UserContextAuth: [idn:service-desk-admin:read,idn:service-desk-integration:read]
|
|
|
|
put:
|
|
tags:
|
|
- Service Desk Integration
|
|
summary: Update a Service Desk integration
|
|
description: Update an existing Service Desk integration by ID with updated value in JSON form as the request body. A token with Org Admin or Service Desk Admin authority is required to access this endpoint.
|
|
operationId: putServiceDeskIntegration
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: ID of the Service Desk integration to update
|
|
required: true
|
|
style: simple
|
|
explode: false
|
|
schema:
|
|
type: string
|
|
example: anId
|
|
requestBody:
|
|
description: The specifics of the integration to update
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/ServiceDeskIntegrationDto.yaml'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: ServiceDeskIntegrationDto as updated
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/ServiceDeskIntegrationDto.yaml'
|
|
'400':
|
|
$ref: '../../v3/responses/400.yaml'
|
|
'401':
|
|
$ref: '../../v3/responses/401.yaml'
|
|
'403':
|
|
$ref: '../../v3/responses/403.yaml'
|
|
'404':
|
|
$ref: '../../v3/responses/404.yaml'
|
|
'429':
|
|
$ref: '../../v3/responses/429.yaml'
|
|
'500':
|
|
$ref: '../../v3/responses/500.yaml'
|
|
security:
|
|
- UserContextAuth: [idn:service-desk-admin:manage,idn:service-desk-integration:manage]
|
|
|
|
delete:
|
|
tags:
|
|
- Service Desk Integration
|
|
summary: Delete a Service Desk integration
|
|
description: Delete an existing Service Desk integration by ID. A token with Org Admin or Service Desk Admin authority is required to access this endpoint.
|
|
operationId: deleteServiceDeskIntegration
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: ID of Service Desk integration to delete
|
|
required: true
|
|
style: simple
|
|
explode: false
|
|
schema:
|
|
type: string
|
|
example: anId
|
|
responses:
|
|
"204":
|
|
description: Service Desk integration with the given ID successfully deleted
|
|
'400':
|
|
$ref: '../../v3/responses/400.yaml'
|
|
'401':
|
|
$ref: '../../v3/responses/401.yaml'
|
|
'403':
|
|
$ref: '../../v3/responses/403.yaml'
|
|
'404':
|
|
$ref: '../../v3/responses/404.yaml'
|
|
'429':
|
|
$ref: '../../v3/responses/429.yaml'
|
|
'500':
|
|
$ref: '../../v3/responses/500.yaml'
|
|
security:
|
|
- UserContextAuth: [idn:service-desk-admin:manage,idn:service-desk-integration:manage]
|
|
|
|
patch:
|
|
operationId: patchServiceDeskIntegration
|
|
tags:
|
|
- Service Desk Integration
|
|
summary: Service Desk Integration Update PATCH
|
|
description: Update an existing ServiceDeskIntegration by ID with a PATCH request.
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: ID of the Service Desk integration to update
|
|
required: true
|
|
style: simple
|
|
explode: false
|
|
schema:
|
|
type: string
|
|
example: anId
|
|
requestBody:
|
|
required: true
|
|
description: |
|
|
A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
|
|
|
|
Only `replace` operations are accepted by this endpoint.
|
|
|
|
A 403 Forbidden Error indicates that you attempted to PATCH a operation that is not allowed.
|
|
content:
|
|
application/json-patch+json:
|
|
schema:
|
|
type: object
|
|
description: A JSONPatch document as defined by [RFC 6902 - JSON Patch](https://tools.ietf.org/html/rfc6902). Only `replace` operations are accepted by this endpoint.
|
|
properties:
|
|
operations:
|
|
description: Operations to be applied
|
|
type: array
|
|
items:
|
|
$ref: '../schemas/JsonPatchOperation.yaml'
|
|
example: >-
|
|
[
|
|
{
|
|
"op": "replace",
|
|
"path": "/ownerRef",
|
|
"value": {
|
|
"id": "2c9180867d05b227017d09921a205b4d",
|
|
"type": "IDENTITY",
|
|
"name": "Angelo2 tester"
|
|
}
|
|
}
|
|
]
|
|
responses:
|
|
"200":
|
|
description: ServiceDeskIntegrationDto as updated
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/ServiceDeskIntegrationDto.yaml'
|
|
'400':
|
|
$ref: '../../v3/responses/400.yaml'
|
|
'401':
|
|
$ref: '../../v3/responses/401.yaml'
|
|
'403':
|
|
$ref: '../../v3/responses/403.yaml'
|
|
'404':
|
|
$ref: '../../v3/responses/404.yaml'
|
|
'429':
|
|
$ref: '../../v3/responses/429.yaml'
|
|
'500':
|
|
$ref: '../../v3/responses/500.yaml'
|
|
security:
|
|
- UserContextAuth: [idn:service-desk-admin:manage,idn:service-desk-integration:manage]
|