documentAdd Mutation
Add or attach a document to any allowed entity (note: consider to use DocumentAttach for 'attach' action). Must only receive one of either file or document_id in input.
Arguments
#
file
Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: image/webp, image/x-dwg, application/dwg, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/csv, text/x-pdf, application/x-eps, application/vnd.oasis.opendocument.text, application/gzipped, application/zip, text/csv, application/x-tif, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/x-eps, application/x-jpg, image/bmp, image/tiff, application/svg+xml, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/tif, image/svg, image/x-bmp, application/dxf, application/rtf, application/vnd.ms-word, application/x-pdf, text/comma-separated-values, application/x-dxf, application/gzip-compressed, application/vnd.pdf, application/x-rtf, image/x-tif, application/tiff, text/rtf, application/pdf, image/jpeg, image/png, pplication/vnd.rar, application/x-zip-compressed, text/pdf, text/plain, application/x-rar-compressed, text/x-comma-separated-values, application/acad, image/heic, application/x-tar, application/jpg, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/excel, application/vnd.ms-excel, application/msword, image/x-ms-bmp, text/svg-xml, image/jpg, application/vnd.oasis.opendocument.presentation, image/dxf, text/svg, image/vnd.dwg, application/vnd.oasis.opendocument.spreadsheet, image/gif, application/acrobat, application/x-rar, application/gzip, application/x-autocad, image/heif-sequence, application/postscript, drawing/x-dwg, image/svg+xml, application/x-gzip, application/x-dwg, application/x-tiff, application/tif, application/eps, drawing/x-dwf, text/x-csv, image/eps, application/x-csv, image/x-tiff, image/heif, application/x-acad, application/vnd.ms-powerpoint, image/heic-sequence, image/x-dxf, drawing/dwg.
relatedObjectId
Target instance ID to attach a document to; currently supports Product, ProductVariant, Seller and User IDs.
Response
#
Returns DocumentAdd .