Skip to content

Commit

Permalink
Automated commit 'IDNWAIMEA-11766: campaign delete v3 api spec (#1392…
Browse files Browse the repository at this point in the history
…)' by github action: 6020953654
  • Loading branch information
tyler-mairose-sp committed Aug 30, 2023
1 parent 7821b02 commit deb80a8
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
5 changes: 3 additions & 2 deletions idn/beta/paths/campaigns-delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ post:
description: >-
Deletes campaigns whose Ids are specified in the provided list of campaign Ids.
Authorized callers must be an ORG_ADMIN or a CERT_ADMIN.
# security:
# - oauth2: [CERT_ADMIN,ORG_ADMIN]
deprecated: true
security:
- oauth2: [idn:campaign:delete]
requestBody:
description: The ids of the campaigns to delete.
required: true
Expand Down
2 changes: 2 additions & 0 deletions idn/sailpoint-api.v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ paths:
$ref: './v3/paths/campaign-activate.yaml'
/campaigns/{id}/complete:
$ref: './v3/paths/campaign-complete.yaml'
/campaigns/delete:
$ref: './v3/paths/campaigns-delete.yaml'
/certifications:
$ref: "./v3/paths/identity-certifications.yaml"
/certifications/{id}:
Expand Down
33 changes: 33 additions & 0 deletions idn/v3/paths/campaigns-delete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
post:
operationId: deleteCampaigns
tags:
- Certification Campaigns
summary: Deletes Campaigns
description: >-
Deletes campaigns whose Ids are specified in the provided list of campaign Ids.
Authorized callers must be an ORG_ADMIN or a CERT_ADMIN.
security:
- oauth2: [idn:campaign:delete]
requestBody:
description: The ids of the campaigns to delete.
required: true
content:
application/json:
schema:
$ref: '../schemas/CampaignsDeleteRequest.yaml'

responses:
'202':
$ref: '../responses/202.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'
9 changes: 9 additions & 0 deletions idn/v3/schemas/CampaignsDeleteRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type : object
properties:
ids:
description: The ids of the campaigns to delete
type: array
items:
type: string
example:
["2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021"]

0 comments on commit deb80a8

Please sign in to comment.