- PATCH [/instances/$INSTANCE]/private/otp-devices/$DEVICE_ID#
This is used to update an OTP device. It is useful when we need to change information in the OTP device or when we have mistake some information.
Required permission:
otp-devices-writeRequest:
The request must be a OtpDevicePatchDetails.
Response:
- 204 No content:
The template has successfully modified.
- 404 Not found:
The template(ID) is unknown to the backend.
- 409 Conflict:
The provided information is inconsistent with the current state of the template. Changes made is the same with another store.
Details:
interface OtpDevicePatchDetails { // Human-readable description for the device. otp_device_description: string; // A key encoded with RFC 3548 Base32. // IMPORTANT: This is not using the typical // Taler base32-crockford encoding. // Instead it uses the RFC 3548 encoding to // be compatible with the TOTP standard. otp_key?: string; // Algorithm for computing the POS confirmation. otp_algorithm: Integer; // Counter for counter-based OTP devices. otp_ctr?: Integer; }