mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Add method to change contact alias to REST API
Needed for https://code.briarproject.org/briar/briar-gtk/-/issues/14 and https://code.briarproject.org/briar/python-briar-wrapper/-/issues/6. Fixes #1781
This commit is contained in:
@@ -183,6 +183,18 @@ Note that it's also possible to add contacts nearby via Bluetooth/Wifi or
|
||||
introductions. In these cases contacts omit the `pendingContact` state and
|
||||
directly become `contact`s.
|
||||
|
||||
### Changing alias of a contact
|
||||
|
||||
`PUT /v1/contacts/{contactId}/alias`
|
||||
|
||||
The alias should be posted as a JSON object:
|
||||
|
||||
```json
|
||||
{
|
||||
"alias": "A nickname for the new contact"
|
||||
}
|
||||
```
|
||||
|
||||
### Removing a contact
|
||||
|
||||
`DELETE /v1/contacts/{contactId}`
|
||||
|
||||
Reference in New Issue
Block a user