---
title: "Update task"
method: PUT
path: "/projects/{project_id}/tasks/local/{local_id}"
tags: ["task"]
---

# Update task

`PUT /projects/{project_id}/tasks/local/{local_id}`

## Request

- Base URL: `https://api.ora.pm`
- URL: `https://api.ora.pm/projects/{project_id}/tasks/local/{local_id}`
- Auth: OAuth 2
  - Authorization code: `https://app.ora.pm/authorize`
  - Token URL: `https://api.ora.pm/oauth/token` scopes: `read`, `write`

## Request body

- UpdateTask
  - `title` string: Title of the task.
  - `color` string: Color of the task.
  - `task_type` integer: Id of the task type(show what type is the task - bug, feature, etc.).
  - `position` integer: Position of the task in the sprint.
  - `points` integer: Difficulty of the task. How many points in the task there are to be done.
  - `points_done` integer: Counter for how many points are done.
  - `state` integer: The state of the task. 1 - Frosen, 2 - Open, 3 - Review, 4 - Closed.
  - `estimated` string: Estimated time for completing the task.
  - `deadline` string, date-time: Deadline of the task.
  - `value` integer: Business value of the task. What importance for the business it has.
  - `description` string: Description about the task.
  - `milestone_id` integer: Id of the milestone in the task(milestone can be attached to the task).

## Response `200`

OK

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/ora/apis/ora-api.md) - [All operations](https://skmtc.dev/ora/apis/ora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ora/apis/ora-api/revisions/983b9e0b0dda?raw)
