mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-23 15:53:43 +01:00
Replace /unbind with /3pid/unbind
This commit is contained in:
parent
24e0ec4bce
commit
2eb9708f7f
|
|
@ -55,12 +55,12 @@ from the given identity server.
|
||||||
|
|
||||||
### Identity Server 3PID Unbind API
|
### Identity Server 3PID Unbind API
|
||||||
|
|
||||||
Add `POST /_matrix/identity/api/v1/unbind` with `mxid` and `threepid` fields.
|
Add `POST /_matrix/identity/api/v1/3pid/unbind` with `mxid` and `threepid` fields.
|
||||||
The `mxid` is the user's `user_id` and `threepid` is a dict with the usual
|
The `mxid` is the user's `user_id` and `threepid` is a dict with the usual
|
||||||
`medium` and `address` fields.
|
`medium` and `address` fields.
|
||||||
|
|
||||||
If the server returns a 400, 404 or 501 HTTP error code then the homeserver
|
If the server returns a 400, 404 or 501 HTTP error code then the homeserver
|
||||||
should assume that the identity server doesn't support the `/unbind` API, unless
|
should assume that the identity server doesn't support the `/3pid/unbind` API, unless
|
||||||
it returns a specific matrix error response (i.e. the body is a JSON object with
|
it returns a specific matrix error response (i.e. the body is a JSON object with
|
||||||
`error` and `errcode` fields).
|
`error` and `errcode` fields).
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ The identity server should authenticate the request in one of two ways:
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
POST /_matrix/identity/api/v1/unbind HTTP/1.1
|
POST /_matrix/identity/api/v1/3pid/unbind HTTP/1.1
|
||||||
|
|
||||||
{
|
{
|
||||||
"mxid": "@foobar:example.com",
|
"mxid": "@foobar:example.com",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue