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