Complete Task API

Complete Task API

This API allows you to mark a specific task as completed in a specified list.


API Endpoint

PATCH /api/v1/tasks/complete


Info
## Important Notes:
- All API requests must be made to this base URL followed by the specific endpoint path
- HTTPS protocol is required for all API calls
- API version v1 is currently supported
- All responses will be returned in JSON format

Request Body

JSON payload:

Notes
{ "task_id": "61043" }

Required Fields

  • task_id (long): The ID of the task to be marked as completed. (Available in the Get Lists API response.)

Headers

  • AuthorizationBearer <Access-Token> (This assumes token-based authentication. Modify as per your actual authentication/authorization method.)

Response

The API will respond with a JSON object containing the following fields:

Notes
{ "status": "success", "message": "Task was found and marked as completed." }

API Error Handling

403 Forbidden

User permission error

Notes
{ "status": "error", "message": "User does not have permission", "errors": { "authorization": "Only the user who is assigned this task can complete this task." } }

400 Bad Request

Task Id not matching with URL Task Id

Notes
{ "status": "error", "message": "Bad Request", "errors": { "task_id": "URL task_id and Model task_id is not same." } }

Request body not provided

Notes
{ "status": "error", "message": "Bad Request", "errors": { "list_id": "List ID is required", "task_id": "Task ID is required" } }

404 Not Found

List ID does not exist

Notes
{ "error": "Not Found", "message": "The specified list ID does not exist" }

Task ID does not exist

Notes
{ "error": "Not Found", "message": "The specified Task ID does not exist" }

401 Unauthorized

Invalid token

Notes
{ "status": "error", "message": "Unauthorized", "errors": { "authorization": "Token is invalid or expired" } }



    • Related Articles

    • Add Task Comment API

      This API allows you to add a comment to a specific task in a specified list. API URL https://app.wegodoo.com/ API Endpoint POST /api/v1/tasks/comments ## Important Notes: - All API requests must be made to this base URL followed by the specific ...
    • Update Task API

      This API allows you to update an existing task in a specified list. API URL https://app.wegodoo.com/ API Endpoint PUT /api/v1/tasks ## Important Notes: - All API requests must be made to this base URL followed by the specific endpoint path - HTTPS ...
    • Create Task API

      This API allows you to create a new task in a specified list. API URL https://app.wegodoo.com/ API Endpoint POST /api/v1/tasks ## Important Notes: - All API requests must be made to this base URL followed by the specific endpoint path - HTTPS ...
    • Why am I unable to Complete a task in a shared list

      If you are a list member in a shared list (Not an admin ) then you cannot complete a task unless it is assigned to you. Only the assigned person will be able to complete the task assigned to him/her. If there is no user added in "Assign to" field, ...
    • How do I uncomplete a subtask if I accidentally marked it as complete

      Subtask is a great way to organize large work. By breaking down a massive project into more manageable parts, you feel empowered and confident in successful project completion. How to restore your uncomplete sub-task, which you have marked as ...