|
|
|
@ -177,3 +177,50 @@ paths:
|
|
|
|
|
"$ref": "definitions/auth_response.yaml"
|
|
|
|
|
tags:
|
|
|
|
|
- Device management
|
|
|
|
|
"/delete_devices":
|
|
|
|
|
post:
|
|
|
|
|
summary: Bulk deletion of devices
|
|
|
|
|
description: |-
|
|
|
|
|
This API endpoint uses the `User-Interactive Authentication API`_.
|
|
|
|
|
|
|
|
|
|
Deletes the given devices, and invalidates any access token associated with them.
|
|
|
|
|
operationId: deleteDevices
|
|
|
|
|
security:
|
|
|
|
|
- accessToken: []
|
|
|
|
|
parameters:
|
|
|
|
|
- in: body
|
|
|
|
|
name: body
|
|
|
|
|
schema:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
devices:
|
|
|
|
|
type: array
|
|
|
|
|
description: The list of device IDs to delete.
|
|
|
|
|
items:
|
|
|
|
|
type: string
|
|
|
|
|
description: A list of device IDs.
|
|
|
|
|
example: ["QBUAZIFURK", "AUIECTSRND"]
|
|
|
|
|
auth:
|
|
|
|
|
description: |-
|
|
|
|
|
Additional authentication information for the
|
|
|
|
|
user-interactive authentication API.
|
|
|
|
|
"$ref": "definitions/auth_data.yaml"
|
|
|
|
|
required:
|
|
|
|
|
- devices
|
|
|
|
|
responses:
|
|
|
|
|
200:
|
|
|
|
|
description: |-
|
|
|
|
|
The devices were successfully removed, or had been removed
|
|
|
|
|
previously.
|
|
|
|
|
schema:
|
|
|
|
|
type: object
|
|
|
|
|
examples:
|
|
|
|
|
application/json: {
|
|
|
|
|
}
|
|
|
|
|
401:
|
|
|
|
|
description: |-
|
|
|
|
|
The homeserver requires additional authentication information.
|
|
|
|
|
schema:
|
|
|
|
|
"$ref": "definitions/auth_response.yaml"
|
|
|
|
|
tags:
|
|
|
|
|
- Device management
|
|
|
|
|