DELETE Task

DELETE Task

The Tasks API allows you to retrieve, create and delete Tasks on the platform. 
This enables scenarios where jobs created/maintained in other systems (e.g. SAP, Salesforce) can be delivered through to your app users automatically.

Any new Task created will be automatically synchronised to the target User’s devices.  

On the Cloud this API is available via SSL secured HTTPS connection using the REST GET, POST and DELETE verbs:

https://eforms.mobileform.net/api/v1/Task?format=[xml|json]

To search for and retrieve multiple Tasks at once, use a GET with the search API found at:

https://eforms.mobileform.net/api/v1/Task/search?format=[xml|json]

The format query string parameter controls the desired response format.  Specify either xml or json.

DELETE Request

The DELETE verb allows you to delete a single Task that has not yet been completed.  The platform will immediately remove the Task from the assigned User.

You may use either JSON or XML formats in your request. 
You indicate this by setting the ContentType HTTP header as “application/json” or “application/xml”. If no ContentType is specified, XML format is assumed.

The required and optional parameters for a DELETE to the Tasks API are outlined below.

Parameter Name

Data Type

Required

Description

Task

Task

Yes

The Task that you wish to create.  See the Task type definition from the GET above.

Task (<Task>) Required Fields
The following fields must be specified when issuing a POST request to the Task API.
All other fields are optional.  Task completion fields (e.g. Status, ActualCompleteLat) will be ignored.

Field Name

Data Type

Description

IntegrationKey

String

Your unique Integration Key found on the Organisation Setup page of the secure website (under My Account)

ProviderId

Integer

Your unique Provider Id found on the Organisation Setup page of the secure website (under My Account)

Id

GUID

Unique identifier of the Task.  You would have received this when creating the Task via POST.

DELETE Response

If the DELETE update is successful, a 200 HTTP status is returned with an empty response.
If the DELETE is unsuccessful, a 400 HTTP status is returned along with a TaskResponse.

Task Response (<TaskResponse>)

Field Name

Data Type

Description

ResponseStatus

ResponseStatus

Details of any errors that may have occurred

    • Related Articles

    • DELETE Task

      This request method allows you to delete an existing task. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST DELETE verb. The format query string parameter controls the desired response format. Specify either XML or ...
    • DELETE Task (Search)

      This request method allows you to delete tasks based on a list of specified Task Ids. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST DELETE verb. The format query string parameter controls the desired response ...
    • DELETE Task Recurring

      This request method allows you to delete an existing recurring task. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST DELETE verb. The format query string parameter controls the desired response format. Specify ...
    • POST Task

      The Tasks API allows you to retrieve, create and delete Tasks on the platform. This enables scenarios where jobs created/maintained in other systems (e.g. SAP, Salesforce) can be delivered through to your app users automatically. Any new Task created ...
    • GET Task

      The Tasks API allows you to retrieve, create and delete Tasks on the platform. This enables scenarios where jobs created/maintained in other systems (e.g. SAP, Salesforce) can be delivered through to your app users automatically. Any new Task created ...