Skip to content

Commit

Permalink
Introduce the DELETE endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Aug 9, 2023
1 parent 3827bc0 commit 12acd43
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions proposals/3814-dehydrated-devices-with-ssss.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,24 @@ it can delete the dehydrated device and create a new one.
If the given `device_id` is not the dehydrated device ID, the server responds
with an error code of `M_FORBIDDEN`, HTTP code 403.

### Deleting a dehydrated device

A dehydrated device will get replaced whenever a new device gets uploaded using
the `PUT /dehydrated_device`, this makes a `DELETE /dehydrated_device`
unnecessary, though for completeness sake and to give client authors to get back
to a state where no dehydrated device exists for a given user we will introduce
one.

`DELETE /dehydrated_device`

Response:

```json
{
"device_id": "dehydrated device's ID"
}
```

### Device Dehydration Format

TODO: define a format. Unlike MSC2679, we don't need to worry about the
Expand Down

0 comments on commit 12acd43

Please sign in to comment.