You can use this endpoint to unlink a user from a project, activity and subactivity from our software.
Name | Type | Required | Description |
---|---|---|---|
p_companyID | string | Yes | The security code you have been provided with, string (32) |
p_userId | string | Yes | The user's internal id in our db |
p_codeProject | string | Yes | Mandatory only in case we want to add a Task, during update it will not be taken in consideration. |
p_codeActivity | string | No | The Activity's code, mandatory in case a p_codeSubactivity was supplied, can be left empty if the user needs to be linked only to a Project. |
p_codeSubactivity | string | No | The Subactivity's code. |
UNLINKED – user was successfully unlinked to the Tasks.
ERROR_NO_SECURITY_HASH - user did not supply p_companyId security code.
ERROR_UNKNOWN_SECURITY_HASH - supplied security code p_companyId is invalid.
USER_NOT_FOUND – no user was identified in our db with the given p_userId value.
PROJECT_NOT_SUPPLIED – no p_codeProject value was supplied by the user.
ACTIVITY_NOT_SUPPLIED_FOR_SUBACTIVITY – there was a p_codeSubactivity value sent, but no p_codeActivity which is mandatory in this case.
CODE_PROJECT_NOT_FOUND – no Project found with the supplied p_codeProject.
CODE_ACTIVITY_NOT_FOUND – no Activity found with the supplied p_codeActivity.
CODE_SUBACTIVITY_NOT_FOUND – no Subactivity found with the supplied p_codeSubactivity.
ACTIVITY_NOT_LINKED_TO_PROJECT – the given p_codeActivity task is not linked to the p_codeProject task.
SUBACTIVITY_NOT_LINKED_TO_ACTIVITY – the given p_codeSubactivity task is not linked to the p_codeActivity task.
CAN_NOT_DELETE_USERSTASKTREES – unknown error happened during linking user to Task(s).
Sample
Response