Upload a new attachment

Request Information

Parameters

NameDescriptionAdditional information
id The id of the form

Define this parameter in the request URI.

version The versionnumber of the form

Define this parameter in the request URI.

upload A multipart message containing a base64 stream and json content. Only the first part of the message is shown below.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Latitude": 1.1,
  "Longitude": 1.1,
  "Comment": "sample string 1",
  "CategoryId": 2,
  "CreatedAt": "2025-12-08T00:54:51.7265894+01:00"
}

application/xml, text/xml

Sample:
<AttachmentRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <Comment>sample string 1</Comment>
  <CategoryId>2</CategoryId>
  <CreatedAt>2025-12-08T00:54:51.7265894+01:00</CreatedAt>
</AttachmentRest>

Response Information

Returns: Attachment

Response body formats

application/json, text/json

Sample:
{
  "AttachmentUri": "/forms/1/versions/2/attachments/1",
  "FormUri": "/forms/1",
  "FormContentUri": "/forms/1/versions/2",
  "Id": 1,
  "CreatedAt": "2025-12-06T20:06:53.3434629+01:00",
  "Version": 2,
  "FormId": 1,
  "Latitude": 9.8887174,
  "Longitude": 21.4774147,
  "Comment": "I am a title",
  "CategoryId": 1
}