POST api/sales/lead/doc/upload?token={token}
Upload a new document or update an existing one. Only PDF or TXT file type is allowed
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
Required |
Body Parameters
DocumentData| Name | Description | Type | Additional information |
|---|---|---|---|
| LeadID | integer |
Required |
|
| DocumentID |
pass 0 for new document |
integer |
Required |
| Description | string |
Required |
|
| ShortFileName | string |
Required |
|
| FileContentBytes |
Encoded file content in Base64 |
Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"LeadID": 1,
"DocumentID": 2,
"Description": "sample string 3",
"ShortFileName": "sample string 4",
"FileContentBytes": "QEA="
}
application/xml, text/xml
Sample:
<DocumentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UltraSoftBIS_REST_API_Sales.Models"> <Description>sample string 3</Description> <DocumentID>2</DocumentID> <FileContentBytes>QEA=</FileContentBytes> <LeadID>1</LeadID> <ShortFileName>sample string 4</ShortFileName> </DocumentData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.