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/x-bmp, application/x-gzip, application/dxf, application/svg+xml, image/jpg, image/x-ms-bmp, pplication/vnd.rar, application/x-tiff, application/x-dwg, application/excel, application/gzip-compressed, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/x-dxf, drawing/x-dwf, application/x-eps, text/svg, image/svg+xml, application/gzipped, text/svg-xml, application/rtf, image/png, image/heic, application/x-tar, application/x-acad, application/vnd.oasis.opendocument.presentation, application/vnd.ms-excel, application/zip, text/plain, image/x-tiff, application/gzip, application/pdf, application/x-tif, application/x-jpg, text/x-csv, application/vnd.oasis.opendocument.spreadsheet, text/comma-separated-values, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/svg, application/x-csv, image/x-eps, image/heic-sequence, application/msword, drawing/x-dwg, application/eps, image/tif, application/acrobat, image/x-dwg, application/x-rar, image/gif, image/dxf, application/x-pdf, application/vnd.oasis.opendocument.text, image/bmp, application/x-rar-compressed, image/x-tif, application/csv, application/tif, text/x-comma-separated-values, text/rtf, application/x-autocad, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-rtf, image/heif-sequence, text/pdf, application/postscript, application/acad, image/webp, drawing/dwg, image/heif, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.pdf, application/tiff, image/jpeg, image/eps, image/x-dxf, application/dwg, application/x-zip-compressed, application/jpg, image/tiff, text/csv, image/vnd.dwg, text/x-pdf, application/vnd.ms-word.
relatedObjectId
Target instance ID to attach a document to; currently supports Product, ProductVariant, Seller and User IDs.
Response
#
Returns DocumentAdd .