PUT api/ServiceDocument/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
ServiceDocumentName | Description | Type | Additional information |
---|---|---|---|
DocumentId |
Sedona internal autonumber for the Customer record |
integer |
None. |
CompanyId |
Value from Company table in the SedonaMaster; for security reasons, there is no lookup in the API for this value. |
integer |
Required |
ServiceTicketNumber |
Ticket_Number from SV_Service_Ticket table |
integer |
Required |
SecurityLevel |
If not set, defaults to 2. Possible values are: 1 - Everyone, 2 - Internal View Only, 3 - Management |
integer |
None. |
FileName |
Name of the file. If not specified, the file name will be set to the name of the file in the request (client's filename). |
string |
String length: inclusive between 0 and 255 |
DocumentType |
Value from SY_Document_Type table in the SedonaDocument database; cannot be set to N/A, but any value not in the SY_Document_Type table will be added |
string |
Required String length: inclusive between 0 and 25 |
FileData |
Set to a base64 encoding or leave blank if the file will be present in multipart MIME formatted request. |
Collection of byte |
None. |
UploadDate |
If not specified, set to the date and time of the upload. |
date |
None. |
UserDescription | string |
String length: inclusive between 0 and 50 |
|
UserCode |
The user making this change; defaults to UserCode value from config file if not set explicitly |
string |
String length: inclusive between 0 and 25 |
Reference1 | string |
String length: inclusive between 0 and 50 |
|
Reference2 | string |
String length: inclusive between 0 and 50 |
|
Reference3 | string |
String length: inclusive between 0 and 50 |
|
Reference4 | string |
String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
{ "DocumentId": 1, "CompanyId": 2, "ServiceTicketNumber": 3, "SecurityLevel": 1, "FileName": "sample string 4", "DocumentType": "sample string 5", "FileData": "QEA=", "UploadDate": "2024-10-13T21:45:13.9630738-05:00", "UserDescription": "sample string 6", "UserCode": "sample string 7", "Reference1": "sample string 8", "Reference2": "sample string 9", "Reference3": "sample string 10", "Reference4": "sample string 11" }
application/xml, text/xml
<ServiceDocument xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <CompanyId>2</CompanyId> <DocumentId>1</DocumentId> <DocumentType>sample string 5</DocumentType> <FileData>QEA=</FileData> <FileName>sample string 4</FileName> <Reference1>sample string 8</Reference1> <Reference2>sample string 9</Reference2> <Reference3>sample string 10</Reference3> <Reference4>sample string 11</Reference4> <SecurityLevel>1</SecurityLevel> <ServiceTicketNumber>3</ServiceTicketNumber> <UploadDate>2024-10-13T21:45:13.9630738-05:00</UploadDate> <UserCode>sample string 7</UserCode> <UserDescription>sample string 6</UserDescription> </ServiceDocument>
application/x-www-form-urlencoded
Response Information
Resource Description
None.