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