POST api/Sync/UploadRelatedRecordFiles?sessionId={sessionId}
Documentation for 'UploadRelatedRecordFiles'.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
sessionId | Documentation for 'sessionId'. |
Define this parameter in the request URI. |
fileUploadRequest | Documentation for 'fileUploadRequest'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "AccountId": 1, "ProjectId": 2, "TargetId": 3, "SyncRequestToken": "8ba96b61-cc79-45c6-ad55-36dd1c362fa5", "RecordedInCallId": 5, "RecordedBy": "sample string 6", "RecordedByUserId": 7, "Files": [ { "CorrelationToken": "1a8c1503-e8f6-44fa-97d8-9423e18fe45a", "RelatedRecordId": 1, "RelatedRecordFileId": 1, "FileToken": "cb6290f2-5b74-4288-a258-fbc0775949ba", "FileSequence": 2, "Label": "sample string 3", "FileData": "QEBA", "FileExtension": "sample string 4", "RecordedOn": "2025-04-04T03:20:19.6522421+01:00" }, { "CorrelationToken": "1a8c1503-e8f6-44fa-97d8-9423e18fe45a", "RelatedRecordId": 1, "RelatedRecordFileId": 1, "FileToken": "cb6290f2-5b74-4288-a258-fbc0775949ba", "FileSequence": 2, "Label": "sample string 3", "FileData": "QEBA", "FileExtension": "sample string 4", "RecordedOn": "2025-04-04T03:20:19.6522421+01:00" }, { "CorrelationToken": "1a8c1503-e8f6-44fa-97d8-9423e18fe45a", "RelatedRecordId": 1, "RelatedRecordFileId": 1, "FileToken": "cb6290f2-5b74-4288-a258-fbc0775949ba", "FileSequence": 2, "Label": "sample string 3", "FileData": "QEBA", "FileExtension": "sample string 4", "RecordedOn": "2025-04-04T03:20:19.6522421+01:00" } ] }
application/xml, text/xml
Sample:
<RelatedRecordFileUploadRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fieldology.Platform.Api.DataCapture.RelatedRecords"> <AccountId>1</AccountId> <Files> <RelatedRecordFileUpdateData> <CorrelationToken>1a8c1503-e8f6-44fa-97d8-9423e18fe45a</CorrelationToken> <FileData>QEBA</FileData> <FileExtension>sample string 4</FileExtension> <FileSequence>2</FileSequence> <FileToken>cb6290f2-5b74-4288-a258-fbc0775949ba</FileToken> <Label>sample string 3</Label> <RecordedOn>2025-04-04T03:20:19.6522421+01:00</RecordedOn> <RelatedRecordFileId>1</RelatedRecordFileId> <RelatedRecordId>1</RelatedRecordId> </RelatedRecordFileUpdateData> <RelatedRecordFileUpdateData> <CorrelationToken>1a8c1503-e8f6-44fa-97d8-9423e18fe45a</CorrelationToken> <FileData>QEBA</FileData> <FileExtension>sample string 4</FileExtension> <FileSequence>2</FileSequence> <FileToken>cb6290f2-5b74-4288-a258-fbc0775949ba</FileToken> <Label>sample string 3</Label> <RecordedOn>2025-04-04T03:20:19.6522421+01:00</RecordedOn> <RelatedRecordFileId>1</RelatedRecordFileId> <RelatedRecordId>1</RelatedRecordId> </RelatedRecordFileUpdateData> <RelatedRecordFileUpdateData> <CorrelationToken>1a8c1503-e8f6-44fa-97d8-9423e18fe45a</CorrelationToken> <FileData>QEBA</FileData> <FileExtension>sample string 4</FileExtension> <FileSequence>2</FileSequence> <FileToken>cb6290f2-5b74-4288-a258-fbc0775949ba</FileToken> <Label>sample string 3</Label> <RecordedOn>2025-04-04T03:20:19.6522421+01:00</RecordedOn> <RelatedRecordFileId>1</RelatedRecordFileId> <RelatedRecordId>1</RelatedRecordId> </RelatedRecordFileUpdateData> </Files> <ProjectId>2</ProjectId> <RecordedBy>sample string 6</RecordedBy> <RecordedByUserId>7</RecordedByUserId> <RecordedInCallId>5</RecordedInCallId> <SyncRequestToken>8ba96b61-cc79-45c6-ad55-36dd1c362fa5</SyncRequestToken> <TargetId>3</TargetId> </RelatedRecordFileUploadRequest>
application/x-www-form-urlencoded
Sample: