v2

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-26192307950.1 KB
authorized_devices

Update Authorized Device

Updates a specific OAuth2 authorized device using its unique ID.

Args: device_id: The ID of the OAuth2 authorized device to update. update: The model containing the attributes to update. auth_context: The current auth context.

Returns: The updated OAuth2 authorized device object.

Raises: KeyError: If the device with the given ID does not exist or does not belong to the current user.

put/api/v1/devices/{device_id}

Path parameters

device_idstring uuid required

Request body

lockedboolean nullable

Whether to lock or unlock the OAuth2 device. A locked device cannot be used for authentication.

Response

Successful Response

resourcesOAuthDeviceResponseResources

Class for all resource models associated with the OAuthDevice entity.

idstring uuid required
permission_deniedboolean