mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-10 04:19:19 +00:00
Automated commit 'ISCCOMPLI-302 : Update Campaign Template API doc beta to v3 Migration (#1424)
* ISCCOMPLI-300: beta to v3 api doc of Create campaign template * ISCCOMPLI-300: fixed lint issue * ISCCOMPLI-300: fixed lint issue * ISCCOMPLI-300: trying readOnly property * ISCCOMPLI-300: reverted readOnly property of name * ISCCOMPLI-300: fixed review comment * ISCCOMPLI-300: fixed review comment about campaign description * ISCCOMPLI-300: fixed review comment about campaign description * API doc beta to v3 Migration * Update Campaign Template API doc beta to v3 Migration * security oauthContext added * replaced array type object to ref of JsonPatchOperation because on API, earlier it was getting displayed as empty Array --------- Co-authored-by: sumant-narote-sp <sumant.narote@sailpoint.com>' by github action: 6350391955
This commit is contained in:
@@ -4,6 +4,8 @@ get:
|
||||
- Certification Campaigns
|
||||
summary: Get a Campaign Template
|
||||
description: Fetches a campaign template by ID.
|
||||
security:
|
||||
- UserContextAuth: [ idn:campaign-template:read ]
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
@@ -46,6 +48,9 @@ patch:
|
||||
- Certification Campaigns
|
||||
summary: Update a Campaign Template
|
||||
description: Allows updating individual fields on a campaign template using the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
|
||||
deprecated: true
|
||||
security:
|
||||
- UserContextAuth: [ idn:campaign-template:update ]
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
@@ -69,7 +74,7 @@ patch:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
$ref: "../schemas/JsonPatchOperation.yaml"
|
||||
example:
|
||||
- op: "replace"
|
||||
path: "/description"
|
||||
@@ -112,6 +117,8 @@ delete:
|
||||
- Certification Campaigns
|
||||
summary: Delete a Campaign Template
|
||||
description: Deletes a campaign template by ID.
|
||||
security:
|
||||
- UserContextAuth: [ idn:campaign-template:delete ]
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
|
||||
@@ -872,6 +872,8 @@ paths:
|
||||
$ref: './v3/paths/campaign-reports-configuration.yaml'
|
||||
/campaign-templates:
|
||||
$ref: './v3/paths/campaign-templates.yaml'
|
||||
/campaign-templates/{id}:
|
||||
$ref: './v3/paths/campaign-template.yaml'
|
||||
/certifications:
|
||||
$ref: "./v3/paths/identity-certifications.yaml"
|
||||
/certifications/{id}:
|
||||
|
||||
68
idn/v3/paths/campaign-template.yaml
Normal file
68
idn/v3/paths/campaign-template.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
patch:
|
||||
operationId: patchCampaignTemplate
|
||||
tags:
|
||||
- Certification Campaigns
|
||||
summary: Update a Campaign Template
|
||||
description: Allows updating individual fields on a campaign template using the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
|
||||
security:
|
||||
- UserContextAuth: [ idn:campaign-template:update ]
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: The ID of the campaign template being modified.
|
||||
example: 2c9180835d191a86015d28455b4a2329
|
||||
requestBody:
|
||||
required: true
|
||||
description: |
|
||||
A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
|
||||
|
||||
The following fields are patchable:
|
||||
* name
|
||||
* description
|
||||
* deadlineDuration
|
||||
* campaign (all fields that are allowed during create)
|
||||
content:
|
||||
application/json-patch+json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../schemas/JsonPatchOperation.yaml"
|
||||
example:
|
||||
- op: "replace"
|
||||
path: "/description"
|
||||
value: "Updated description!"
|
||||
- op: "replace"
|
||||
path: "/campaign/filter/id"
|
||||
value: "ff80818155fe8c080155fe8d925b0316"
|
||||
responses:
|
||||
'200':
|
||||
description: >-
|
||||
Indicates the PATCH operation succeeded, and returns the template's new representation.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../schemas/CampaignTemplate.yaml'
|
||||
examples:
|
||||
Manager:
|
||||
$ref: '../schemas/campaign/examples/CampaignTemplateManager.yaml'
|
||||
Search:
|
||||
$ref: '../schemas/campaign/examples/CampaignTemplateSearch.yaml'
|
||||
Source Owner:
|
||||
$ref: '../schemas/campaign/examples/CampaignTemplateSourceOwner.yaml'
|
||||
RoleComposition:
|
||||
$ref: '../schemas/campaign/examples/CampaignTemplateRoleComposition.yaml'
|
||||
'400':
|
||||
$ref: '../responses/400.yaml'
|
||||
'401':
|
||||
$ref: '../responses/401.yaml'
|
||||
'403':
|
||||
$ref: '../responses/403.yaml'
|
||||
'404':
|
||||
$ref: '../responses/404.yaml'
|
||||
'429':
|
||||
$ref: '../responses/429.yaml'
|
||||
'500':
|
||||
$ref: '../responses/500.yaml'
|
||||
Reference in New Issue
Block a user