Attachment - Upload

POST {{server_url}}/HOPEXGraphQL/api/attachment/{{documentId}}/file

Upload a file in HOPEX in a given Business Document absolute identifier.

The option in the header allows to define : * new version of the existing document * override of the existing document

HEADERS

KeyDatatypeRequiredDescription
x-hopex-environment-idstringPossible value : new or replace
x-hopex-repository-idstringThis is a temporary name for the file you are uploading. The final name of the file will be computed based on the business document name. The extension is important as it will be used for the filetype
x-hopex-profile-idstring
x-hopex-documentversionstring
x-hopex-filenamestring

RESPONSES

status: OK

{"documentId":"Dbm4QHHbM5vH","success":true}