You can use this endpoint to create a new Task or update an existing Task into/from our software.
Name | Type | Required | Description |
---|---|---|---|
p_companyID | string | Yes | The security code you have been provided with, string (32) |
p_code | string | Yes | We will look to update the existing Task identified by the value provided, if no such Task will be found we will insert a new Task with the given code |
p_levelId | string | No | Mandatory only in case we want to add a Task, during update it will not be taken in consideration. |
p_name | string | No | Mandatory in case we want to add a Task, optional in case of update (leave empty for no change to it). |
p_startDate | string | No | Mandatory in case we want to add a Task, optional in case of update (leave empty for no change to it). |
p_endDate | string | No | Mandatory in case we want to add a Task, optional in case of update (leave empty for no change to it). |
p_estimatedHours | string | No | Optional for both add/update. |
INSERTED – the adding of a new Task was a success.
UPDATED – the update of the existing task was a success.
ERROR_NO_SECURITY_HASH - user did not supply p_companyId security code.
ERROR_UNKNOWN_SECURITY_HASH - supplied security code p_companyId is invalid.
MISSING_CODE – p_code parameter is missing.
MISSING_LEVEL – the p_levelId parameter is missing during add Task (during update it is ignored).
INCORRECT_LEVEL – the p_levelId parameter can have only one of the values 1, 2 or 3.
MISSING_NAME – the p_name parameter is missing during add Task.
MISSING_START_DATE - the p_startDate parameter is missing during add Task.
INCORRECT_START_DATE – the p_startDate value must be in the format yyyy-mm-dd.
MISSING_END_DATE - the p_endDate parameter is missing during add Task.
INCORRECT_END_DATE – the p_endDate value must be in the format yyyy-mm-dd.
INCORRECT_ESTIMATED_HOURS – if something provided for the p_estimatedHours value, it must be an integer number.
ERROR_SAVING_TASKTREE_FOR_PROJECT – there was a problem adding a new Project.
ERROR_SAVING – there was an unknown problem saving the Task.
Sample
Response