Delete (a) word(s) in the database.

DELETE /words

Delete (a) word(s) in the database manually.

application/json

Body Required

The id of the word(s) to be deleted. The array can be either empty, or contain multiple ids.

array[integer] array[integer]

Responses

  • 200

    OK

  • 400

    The request is not following the convention.

  • 403

    The user is not authorized to delete a word (aka. not admin).

  • 404

    The word id's is not found.

  • 500

    Unknown error.

DELETE /words
curl \
 -X DELETE http://localhost:5000/words \
 --cookie "fastapiusersauth=$API_KEY" \
 -H "Content-Type: application/json" \
 -d '[1337,1338,1339]'
Request example
[
  1337,
  1338,
  1339
]