
This request method allows you to upload and replace files for a recurring task.
On the Cloud, this API is available via SSL-secured HTTPS connection using the REST POST verb.
The format query string parameter controls the desired response format. Specify either XML or JSON.
/api/v2/taskrecurring/files?format=xml/json
You may use either JSON or XML formats in your POST submission.
You indicate this by setting the ContentType HTTP header as “application/json” or “application/xml”.
If no ContentType is specified, XML format is assumed.
All XML formatted requests must specify the following XML namespace in the data source root element:
xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”
Endpoints & API Explorer
| Node | API Endpoint | API Explorer |
|---|---|---|
| US | /api/v2/taskrecurring/files | Model Description/Schema & Parameters |
Parameters
The POST verb allows you to upload files for a given recurring task.
The required and optional parameters for a POST call to the Task Recurring API are outlined below.
| Name | Type | Description | Required |
|---|---|---|---|
| TaskRecurringId | String | The unique identifier of the recurring task to upload this file. | ✓ |
| CompanyId | Integer | Your unique Company Id is found on the Organisation Setup page of the secure website. | ✓ |
| IntegrationKey | String | Your unique Integration Key is found on the Organisation Setup page of the secure website. | ✓ |
| File | File | The file(s) to upload using multipart/form-data. Multiple files can be uploaded in a single request. Ensure you have registered the file name(s) in the TaskRecurring File collection via the /taskrecurring API ahead of uploading file(s). Uploaded file name(s) MUST match exactly to a pre-existing record in the target Recurring Task’s File collection. Note that file names may only contain a maximum of 200 characters comprising of numbers, letters and underscores, any other characters will automatically be removed. | ✓ |
Example
Given that the API is REST-based, you can access the API directly via your web browser to test or by using Postman API Platform.
Request URL
https://eforms.mobileform.net/api/v2/taskrecurring/files?TaskRecurringId=eb5379084bda49549955b23c0038df86&CompanyId=63XXXX&IntegrationKey=24aXXXXXXXXResponse Body
{
"Id": "eb5379084bda49549955b23c0038df86"
}