Skip to content

Update Card

Updates an existing card. Only cards belonging to the admin institution can be changed.

Terminal window
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.

{
"success": true,
"card": {
"id": 8708,
"name": "Updated quiz"
}
}

ParameterTypeDescriptionRequired
idnumberCard ID.Yes

Body fields match Create Card.


HTTPCodeWhen
400invalid_argumentInvalid payload
401unauthenticatedMissing/invalid JWT
403permission_deniedCard outside institution / not admin
404not_foundCard not found (when applicable)

  • Admin only; institution ownership is enforced.