mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-10 04:19:19 +00:00
Automated commit by github action: 3371158773
This commit is contained in:
79
idn/beta/paths/role-bulk-delete.yaml
Normal file
79
idn/beta/paths/role-bulk-delete.yaml
Normal file
@@ -0,0 +1,79 @@
|
||||
post:
|
||||
operationId: bulkDeleteRoles
|
||||
summary: Delete Role(s)
|
||||
tags:
|
||||
- Roles
|
||||
description: >-
|
||||
This API initiates a bulk deletion of one or more Roles.
|
||||
|
||||
|
||||
A token with API, ORG_ADMIN, ROLE_ADMIN, or ROLE_SUBADMIN authority is required to call this API. In addition, a
|
||||
token with ROLE_SUBADMIN authority may only call this API if all Roles included in the request are associated
|
||||
to Sources with management workgroups of which the ROLE_SUBADMIN is a member.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../v3/schemas/access/RoleBulkDeleteRequest.yaml'
|
||||
example:
|
||||
{
|
||||
"roleIds": [ "2c91808876438bb2017668b91919ecca","2c91808876438ba801766e129f151816" ]
|
||||
}
|
||||
responses:
|
||||
'202':
|
||||
description: Returns an object with the id of the task performing the delete operation.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../v3/schemas/BaseReferenceDto.yaml'
|
||||
example:
|
||||
{
|
||||
"type": "TASK_RESULT",
|
||||
"id": "464ae7bf791e49fdb74606a2e4a89635",
|
||||
"name": null
|
||||
}
|
||||
'400':
|
||||
description: Client Error - Returned if the request body is invalid.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../v3/schemas/ErrorResponseDto.yaml'
|
||||
examples:
|
||||
400.1 Bad Request Content:
|
||||
description: Response for bad request content
|
||||
value:
|
||||
detailCode: 400.1 Bad Request Content
|
||||
trackingId: 1ea1adcb84da4dcb890145e05745774e
|
||||
messages:
|
||||
- locale: en-US
|
||||
localeOrigin: DEFAULT
|
||||
text: The request was syntactically correct but its content is semantically invalid.
|
||||
400.1 Role ids limit violation:
|
||||
description: Role ids limit violation response
|
||||
value:
|
||||
detailCode: 400.1 Bad Request Content
|
||||
trackingId: 77aa89ac6f0e422dbc588866abc22be9
|
||||
messages:
|
||||
- locale: en-US
|
||||
localeOrigin: DEFAULT
|
||||
text: roleIds count exceeded max limit of 50 for bulk-delete.
|
||||
400.1.404 Referenced object not found:
|
||||
description: Referenced object not found response
|
||||
value:
|
||||
detailCode: 400.1.404 Referenced object not found
|
||||
trackingId: 77aa89ac6f0e422dbc588866abc22be9
|
||||
messages:
|
||||
- locale: en-US
|
||||
localeOrigin: DEFAULT
|
||||
text: Referenced roleIds ["2c91808876438bb2017668b91919ecca"] was not found.
|
||||
'401':
|
||||
$ref: '../../v3/responses/401.yaml'
|
||||
'403':
|
||||
$ref: '../../v3/responses/403.yaml'
|
||||
'429':
|
||||
$ref: '../../v3/responses/429.yaml'
|
||||
'500':
|
||||
$ref: '../../v3/responses/500.yaml'
|
||||
security:
|
||||
- oauth2: [idn:role:delete,idn:role-checked:delete]
|
||||
10
idn/v3/schemas/access/RoleBulkDeleteRequest.yaml
Normal file
10
idn/v3/schemas/access/RoleBulkDeleteRequest.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
type: object
|
||||
properties:
|
||||
roleIds:
|
||||
description: List of IDs of Roles to be deleted.
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
example: ["2c9180847812e0b1017817051919ecca","2c9180887812e0b201781e129f151816"]
|
||||
required:
|
||||
- roleIds
|
||||
Reference in New Issue
Block a user