Confirmed users
632
edits
Line 92: | Line 92: | ||
=== PATCH /rooms/{token} === | === PATCH /rooms/{token} === | ||
The "PATCH /rooms/{token}" endpoint is used to update information about an existing room. | |||
PATCH /rooms/_nxD4V4FflQ HTTP/1.1 | |||
Accept: application/json | |||
Accept-Encoding: gzip, deflate | |||
Authorization: <stripped> | |||
Content-Type: application/json; charset=utf-8 | |||
Host: localhost:5000 | |||
{ | |||
"context": { | |||
"value": "PWjHj89HBS-...ICUX3Iqd9ZsfDNLoUeAb5KGJgEtDy-7ag52rYY5mGgP2GQ==", | |||
"alg": "AES-GCM", | |||
"wrappedKey": "KLPCJEy8vewUeHFFLtvMNA" | |||
}, | |||
"expiresIn": 24 | |||
} | |||
The parameters for this endpoint are the same as for "POST /rooms". Any omitted parameters are not updated. | |||
HTTP/1.1 200 OK | |||
Connection: keep-alive | |||
Content-Type: application/json; charset=utf-8 | |||
Date: Wed, 16 Jul 2014 13:09:40 GMT | |||
Server-Authorization: <stripped> | |||
{ | |||
"expiresAt": 1405534180 | |||
} | |||
* '''expiresAt''' - The date after which the room will no longer be valid (in seconds since the Unix epoch). | |||
=== GET /rooms/{token} === | === GET /rooms/{token} === | ||
=== GET /rooms === | === GET /rooms === |