One moment please...
 
Exact Synergy Enterprise   
 

Mobile.WebApi service in Exact Synergy Enterprise

Menu path

Not applicable.

Introduction

The Exact.Mobile.WebApi service allows users to upload multiple images and attachments faster than using the binary service.

What version are you using?

The information in this document is applicable to product update 267 and higher. If you have versions lower than this, certain features explained here will not be applicable.

Roles and rights

Not applicable.

Technical information

The service implements the following service endpoints:

  1. Upload images
  2. Link attachments to entity

Upload images

Type: POST

URL: <baseurl>/api/files/attachments/?entityType=2&entityId=

Parameters: 

  • entityType: 2 = document, 4 = request.
  • entityId: (which is not mandatory) uses the request ID if the request is already created. Otherwise, this can be left blank. As a result, the attachment is then created with a temporary empty entity ID. This is so it can be attached when the entity is created, e.g. in case you save the request after uploading the images, you can later use the link attachments to link them when the request ID is available after saving. 

Body: Multi-part attachments with a boundary.

Result: An array of attachment IDs that you must use to link to the entity later if needed.

Link attachments

Type: POST

URL: <baseurl>/api/files/linkAttachments

Parameters: None

Body:

The entityId is the entity to which the attachments must be linked. The array of attachment IDs are the attachment IDs of the attachments to be linked. Please see upload images in case the entityid is not available yet.

Result: 200 if succeeded.

Related document

     
 Main Category: Attachments & notes  Document Type: Online help main
 Category:  Security  level: All - 0
 Sub category:  Document ID: 30.624.338
 Assortment:  Date: 24-05-2024
 Release: 267  Attachment:
 Disclaimer