Upload survey answer image

POST/questions/:questionId/answer-image

Upload an image for an image-type survey question and get the stored URL. Pass the URL as `answer` to POST /questions/:questionId/answer.

AuthLogin required

Path parameters

questionIdstringrequired

Question ID.

Request body

filefilerequired

Image file (multipart/form-data)

Notes

Images are sent as multipart/form-data. JPEG, PNG and GIF are supported, up to 5MB. Exceeding the limit returns 400 (errorCode 10042).

Request
curl https://api.4s.link/questions/QUESTION_ID/answer-image \
-X POST \
-H "Authorization: Bearer 4s_at_..." \
-F "file=@image.png"
Example response
{
"imageUrl": "https://.../answer.png"
}