Skip to main content

mediaCommentAdd

Media operations currently support images only.

Comment on an image. Without parentId this starts a thread, which may be pinned to a point on the image (x and y as fractions of its width and height). With parentId it replies to a thread.

Business Rules: the image must belong to the current company. A pin needs both coordinates, each between 0 and 1. Replies cannot be nested, carry no pin, and cannot be added to a resolved thread. Error Scenarios: an image from another company, a blank body or one over 2,000 characters, a half pin or one outside the image, an unknown parent, a reply to a reply, or a reply to a resolved thread is rejected. Permissions Required: media:add_image_comment.

mediaCommentAdd(
input: MediaCommentAddInput!
): MediaComment!

Arguments​

mediaCommentAdd.input ● MediaCommentAddInput! non-null input common​

Parameters for MediaCommentAdd

Type​

MediaComment object products​

A comment on an image. A thread may be pinned to a point on the image and gathers replies; only threads are resolved. Archived comments are left out of the image.