Upload an image
POST/api/documents/:id/images
Stores an uploaded image file for the document and returns its id and the url to reference in the body. This call does not insert the image into the document; the client does that through the editor. Both the declared MIME type and the file's actual bytes must be PNG, JPEG, GIF, or WebP, and the limit is 10 MB. The image is deleted with the document. Requires write access, which includes guests from a write share link; read-only callers get 403.
Request
Responses
- 201
- 400
- 403
- 404
Stored image. url is /api/documents/{id}/images/{imageId}.
Request failed.
Request failed.
Request failed.