Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
54 lines (41 loc) · 1.59 KB

update-user-e2e-key-in-room.md

File metadata and controls

54 lines (41 loc) · 1.59 KB
description
Updates the end-to-end encryption key for a user in a room.

Update User E2E Key in Room

URL Requires Auth HTTP Method
api/v1/e2e.updateGroupKey YES POST

Body Parameters

ArgumentExampleRequiredDescription
uidd26x6zSkaPSe5gCyyRequiredThe user's Id.
rid9R1V4t3_k3YRequiredThe Room Id.
keyM4-Ubd4T3d-k39RequiredThe key to update with.

Example Call

curl --location --request POST 'http://localhost:3000/api/v1/e2e.updateGroupKey' \
--header 'X-User-Id: Dtx5kwoQJGYQSw3Qh' \
--header 'X-Auth-Token: xR2x_iTXtoKLcNR21uhGKtUIt0X9r4x-r-UvhMwsVKV' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uid": "d26x6zSkaPSe5gCyy",
    "rid": "9R1V4t3_k3Y",
    "key": "M4-Ubd4T3d-k39"
}'

Example Response

Success

{
    "success": true
}

Error

Any of the following errors can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

{% tabs %} {% tab title=" Authorization" %}

{
    "success": false,
    "error": "unauthorized"
}

{% endtab %} {% endtabs %}