Update Card
Updates an existing card. Only cards belonging to the admin institution can be changed.
Request Example
Section titled “Request Example”curl --request PUT \ --url 'https://lxp.prod.api.toolzz.media/cards/8708' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Updated quiz", "ask": "What is 3+3?", "time": 90, "answers": "[{\"answer\":\"6\",\"correct\":true},{\"answer\":\"5\",\"correct\":false}]" }'Legacy aliases: PUT /cards/:type/:id and PUT /cards/:type/:id/:ctype.
Response Example
Section titled “Response Example”{ "success": true, "card": { "id": 8708, "name": "Updated quiz" }}Request description
Section titled “Request description”Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description | Required |
|---|---|---|---|
id | number | Card ID. | Yes |
Body fields match Create Card.
Error responses
Section titled “Error responses”| HTTP | Code | When |
|---|---|---|
| 400 | invalid_argument | Invalid payload |
| 401 | unauthenticated | Missing/invalid JWT |
| 403 | permission_denied | Card outside institution / not admin |
| 404 | not_found | Card not found (when applicable) |
Security
Section titled “Security”- Admin only; institution ownership is enforced.