mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Add doc for PUT /devices/{deviceId}
Oops, forgot this.
This commit is contained in:
parent
af515012ea
commit
07dbf6fcf6
|
|
@ -95,6 +95,40 @@ paths:
|
||||||
description: The current user has no device with the given ID.
|
description: The current user has no device with the given ID.
|
||||||
tags:
|
tags:
|
||||||
- Device management
|
- Device management
|
||||||
|
put:
|
||||||
|
summary: Update a device
|
||||||
|
description: |-
|
||||||
|
Updates the metadata on the given device.
|
||||||
|
security:
|
||||||
|
- accessToken: []
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
type: string
|
||||||
|
name: deviceId
|
||||||
|
description: The device to update.
|
||||||
|
required: true
|
||||||
|
x-example: "QBUAZIFURK"
|
||||||
|
- in: body
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
display_name:
|
||||||
|
type: string
|
||||||
|
description: |-
|
||||||
|
The new display name for this device. If not given, the
|
||||||
|
display name is unchanged.
|
||||||
|
example: My other phone
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The device was successfully updated.
|
||||||
|
examples:
|
||||||
|
application/json: |-
|
||||||
|
{}
|
||||||
|
schema:
|
||||||
|
type: object # empty json object
|
||||||
|
404:
|
||||||
|
description: The current user has no device with the given ID.
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a device
|
summary: Delete a device
|
||||||
description: |-
|
description: |-
|
||||||
|
|
@ -107,7 +141,7 @@ paths:
|
||||||
- in: path
|
- in: path
|
||||||
type: string
|
type: string
|
||||||
name: deviceId
|
name: deviceId
|
||||||
description: The device to retrieve.
|
description: The device to delete.
|
||||||
required: true
|
required: true
|
||||||
x-example: "QBUAZIFURK"
|
x-example: "QBUAZIFURK"
|
||||||
- in: body
|
- in: body
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue