... | @@ -70,4 +70,19 @@ |
... | @@ -70,4 +70,19 @@ |
|
| ----- | ----- | ----- |
|
|
| ----- | ----- | ----- |
|
|
| nfc_pass | base64 string | encrypted NFC password, plaintext is char(12) |
|
|
| nfc_pass | base64 string | encrypted NFC password, plaintext is char(12) |
|
|
| level | int | 0: low, 1: high |
|
|
| level | int | 0: low, 1: high |
|
|
|
|
| expiration | int | UNIX time |
|
|
|
|
|
|
|
|
## Edit the canonical name or security level/expiration for a machine
|
|
|
|
|
|
|
|
* URL: `machine/edit`
|
|
|
|
|
|
|
|
* Request
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| ----- | ----- | ----- |
|
|
|
|
| username | string | username |
|
|
|
|
| password | string | password |
|
|
|
|
| machine_id | int | ID of the machine to edit |
|
|
|
|
| machine_name | string | new canonical name of the machine |
|
|
|
|
| level | int | 0: low, 1: high |
|
|
| expiration | int | (optional) UNIX time, only needed when low level | |
|
| expiration | int | (optional) UNIX time, only needed when low level | |
|
|
|
\ No newline at end of file |