---
title: "Update Project Task"
method: PUT
path: "/attendance/project-tasks/{taskId}"
tags: ["Projects"]
---

# Update Project Task

`PUT /attendance/project-tasks/{taskId}`

Update an existing project task. This endpoint will replace the record with the data in the request payload, so make sure to first read the whole record to avoid data loss.

<p><b>Note</b>: The `/projectTask/status` field cannot be updated via this endpoint. Use <a href="/reference/patch_attendance-project-tasks-taskid-archive" target="_blank">archive</a>/<a href="/reference/patch_attendance-project-tasks-taskid-restore" target="_blank">restore</a> endpoints instead.</p>

<p><b>Testing notes</b>:</p>
  <ul>
  <li>Use the testing widget's <b>Try It!</b> option to test this endpoint.</li>
  <li>Use the <b>Examples > Request Example</b> option to see how to initiate body parameters.</li>
  </ul>

## Path parameters

- `taskId` integer, required

## Request body

- TaskUpdateRequest — Request schema for updating project tasks
  - `items` TaskUpdateRequestObject[], required — List of tasks to update (must contain exactly one item)
    - `objectType` 'projectTask', required — Type of the object
    - `fields` object, required — Task fields for update request (all optional)
      - `/projectTask/name` object, required — The task name
        - `value` string
      - `/projectTask/billable` object, required — Whether this task is billable
        - `value` boolean

## Response `200`

Task updated successfully

## Other responses

- `304` — Not modified
- `400` — The request is malformed or includes invalid parameters
- `401` — Authentication failed. Check your service user credentials
- `403` — The service user or token is missing the required permissions to access the requested data
- `404` — Task not found
- `429` — Rate limit exceeded - see <a href="https://apidocs.hibob.com/reference/project-tasks#rate-limiting">Rate limits</a>
- `500` — An unexpected error occurred. Try again or contact support if the issue persists.

---

[API](https://skmtc.net/hibob/apis/employee-data-api.md) · [All operations](https://skmtc.net/hibob/apis/employee-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hibob/employee-data-api/versions/0781ebbdda91/schema)
