# Remove a task dependency

`DELETE /api/task/{taskId}/depends-on/{predecessorTaskId}`

URL: https://repsona.com/api/delete-task-taskid-depends-on-predecessortaskid

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | required | ID of the task. |
| `predecessorTaskId` | path | integer | required | ID of the task that must be finished first (the predecessor). |

## Request

```sh
curl -X DELETE "https://<space>.repsona.com/api/task/{taskId}/depends-on/{predecessorTaskId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## Responses

- 200: Removed (idempotent)
- 401: Authentication is required
- 403: Not a project member
- 404: Task not found

## Example response

```json
{
  "ok": true
}
```
