Device management

Create or update a device

Updates the metadata on the given device, or creates a new device.

The ability to create new devices is only available to application services: regular clients may only update existing devices.

When a new device was created, the homeserver MUST return a 201 HTTP status code. It MUST return a 200 HTTP status code if a device was updated.

This endpoint is rate-limited for device creation. Servers MAY use login rate limits.

put/_matrix/client/v3/devices/{deviceId}

Request

Path parameters

deviceIdstring required

The device to update.

Request body

display_namestring

The new display name for this device. If not given, the display name is unchanged.

Example request

{
  "display_name": "My other phone"
}

Response

The device was successfully updated.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.