Upload a file to a temporary folder
This endpoint enables you to upload a file to the following folder on a Sage CRM server:
<Sage CRM installation folder>\Library\TEMP\<SID>
Where <SID> is the session ID you use to authenticate your call.
You can upload only one file at a time.
Authentication
Session ID. For details, see Authentication: retrieve session ID for a user.
Headers
|
Key |
Value |
|---|---|
|
Content-Type |
multipart/form-data |
HTTP
POST http://{{server}}/sdata/{{install}}j/sagecrm/-/$service/fileUpload?SID={{sid}}
URI parameters
|
Name |
Description |
|---|---|
|
{{server}} |
Name or IP address of a Sage CRM server. |
|
{{install}} |
Sage CRM installation name. By default, this is CRM. |
|
{{sid}} |
Session ID of the user account under which to upload files. |
Request body
|
Key |
Value |
|---|---|
|
hiddenFileUpload |
Data of the files to upload. |
Response
An XML object containing information about the uploaded file.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<message></message>
<file></file>
<status></status>
</root>
|
Name |
Description |
|---|---|
|
<file></file> |
Name of the uploaded file. |
|
<status></status> |
Upload status. |
