Upload a new illustration for a specific word, associated its id.
Upload a new illustration for a specific word, associated with its id. The illustration can be provided as a link to an image, or based on file upload.
POST
/words/illustration/{id}
curl \
-X POST http://localhost:5000/words/illustration/{id} \
--cookie "fastapiusersauth=$API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "id=42" \
-F "image=@file"
Response examples (200)
{
"link": "https://meddict-vinuni.com/illustration/1.png"
}