POST forms
Upload a form as a multipart message. The first part of the message should be json, the second part must be base64 upload. Only the first part of the message is shown below.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| upload | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"TypeId": 2,
"AddressId": 3,
"CompanyName": "sample string 4",
"StreetNr": "sample string 5",
"Zip": "sample string 6",
"City": "sample string 7",
"CountryCode": "sample string 8",
"DispatcherId": 1,
"Status": "sample string 9",
"CurrentVersion": 10,
"CustomFields": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"PopUpOnTablet": true
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"PopUpOnTablet": true
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"PopUpOnTablet": true
}
]
}
application/xml, text/xml
Sample:
<FormRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>sample string 1</Name>
<TypeId>2</TypeId>
<AddressId>3</AddressId>
<CompanyName>sample string 4</CompanyName>
<StreetNr>sample string 5</StreetNr>
<Zip>sample string 6</Zip>
<City>sample string 7</City>
<CountryCode>sample string 8</CountryCode>
<DispatcherId>1</DispatcherId>
<Status>sample string 9</Status>
<CurrentVersion>10</CurrentVersion>
<CustomFields>
<CustomFieldRest>
<Name>sample string 1</Name>
<Value>sample string 2</Value>
<PopUpOnTablet>true</PopUpOnTablet>
</CustomFieldRest>
<CustomFieldRest>
<Name>sample string 1</Name>
<Value>sample string 2</Value>
<PopUpOnTablet>true</PopUpOnTablet>
</CustomFieldRest>
<CustomFieldRest>
<Name>sample string 1</Name>
<Value>sample string 2</Value>
<PopUpOnTablet>true</PopUpOnTablet>
</CustomFieldRest>
</CustomFields>
</FormRest>
Response Information
Returns: The form model
Response body formats
application/json, text/json
Sample:
{
"Uri": "/forms/1",
"CreatedAt": "0001-01-01T00:00:00",
"LastUpdatedAt": "0001-01-01T00:00:00",
"Id": 1,
"Name": "FRM 14616",
"TypeId": 1,
"AddressId": 0,
"CompanyName": "Fruithandel van holle",
"StreetNr": null,
"Zip": null,
"City": null,
"CountryCode": null,
"DispatcherId": null,
"Status": null,
"CurrentVersion": 0,
"CustomFields": null
}
