mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 12:27:48 +00:00
* added new oauth2 flow and description * renamed authentication to make more sense' by github action: 5967546682
127 lines
3.2 KiB
YAML
127 lines
3.2 KiB
YAML
get:
|
|
operationId: getNonEmployeeSource
|
|
security:
|
|
- UserContextAuth: [idn:nelm:read]
|
|
tags:
|
|
- Non-Employee Lifecycle Management
|
|
summary: Get a Non-Employee Source
|
|
description: >-
|
|
This gets a non-employee source.
|
|
parameters:
|
|
- in: path
|
|
example: 2c91808b7c28b350017c2a2ec5790aa1
|
|
name: sourceId
|
|
description: >-
|
|
Source Id
|
|
required: true
|
|
schema:
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: Non-Employee source object.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "../schemas/NonEmployeeSource.yaml"
|
|
"400":
|
|
$ref: "../../v3/responses/400.yaml"
|
|
"401":
|
|
$ref: "../../v3/responses/401.yaml"
|
|
"403":
|
|
$ref: "../../v3/responses/403.yaml"
|
|
"429":
|
|
$ref: "../../v3/responses/429.yaml"
|
|
"500":
|
|
$ref: "../../v3/responses/500.yaml"
|
|
patch:
|
|
operationId: patchNonEmployeeSource
|
|
security:
|
|
- UserContextAuth: [idn:nelm:manage]
|
|
tags:
|
|
- Non-Employee Lifecycle Management
|
|
summary: Patch a Non-Employee Source
|
|
description: >-
|
|
patch a non-employee source. (Partial Update) Patchable field: **name,
|
|
description, approvers, accountManagers**
|
|
|
|
parameters:
|
|
- in: path
|
|
name: sourceId
|
|
description: >-
|
|
Source Id
|
|
required: true
|
|
example: 2c91808b6ef1d43e016efba0ce470904
|
|
schema:
|
|
type: string
|
|
requestBody:
|
|
description:
|
|
A list of non-employee source update operations according to the [JSON
|
|
Patch](https://tools.ietf.org/html/rfc6902) standard.
|
|
required: true
|
|
content:
|
|
application/json-patch+json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: "../schemas/JsonPatchOperation.yaml"
|
|
example:
|
|
- op: "replace"
|
|
path: "/name"
|
|
value: { "new name" }
|
|
- op: "replace"
|
|
path: "/approvers"
|
|
value:
|
|
[
|
|
"2c91809f703bb37a017040a2fe8748c7",
|
|
"48b1f463c9e8427db5a5071bd81914b8",
|
|
]
|
|
responses:
|
|
"200":
|
|
description: A patched non-employee source object.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "../schemas/NonEmployeeSource.yaml"
|
|
"400":
|
|
$ref: "../../v3/responses/400.yaml"
|
|
"401":
|
|
$ref: "../../v3/responses/401.yaml"
|
|
"403":
|
|
$ref: "../../v3/responses/403.yaml"
|
|
"429":
|
|
$ref: "../../v3/responses/429.yaml"
|
|
"500":
|
|
$ref: "../../v3/responses/500.yaml"
|
|
delete:
|
|
operationId: deleteNonEmployeeSource
|
|
security:
|
|
- UserContextAuth: [idn:nelm:manage]
|
|
tags:
|
|
- Non-Employee Lifecycle Management
|
|
summary: Delete Non-Employee Source
|
|
description: >-
|
|
This request will delete a non-employee source.
|
|
|
|
parameters:
|
|
- in: path
|
|
name: sourceId
|
|
description: >-
|
|
Source Id
|
|
required: true
|
|
example: 2c91808b6ef1d43e016efba0ce470904
|
|
schema:
|
|
type: string
|
|
responses:
|
|
"204":
|
|
$ref: "../../v3/responses/204.yaml"
|
|
"400":
|
|
$ref: "../../v3/responses/400.yaml"
|
|
"401":
|
|
$ref: "../../v3/responses/401.yaml"
|
|
"403":
|
|
$ref: "../../v3/responses/403.yaml"
|
|
"429":
|
|
$ref: "../../v3/responses/429.yaml"
|
|
"500":
|
|
$ref: "../../v3/responses/500.yaml"
|