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