---
title: "Update a phase"
method: PUT
path: "/admin/phases/{id}"
tags: ["Task Phases"]
---

# Update a phase

`PUT /admin/phases/{id}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/admin/phases/{id}`
- Auth: HTTP bearer

Update an existing task phase

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateTaskPhaseRequest
  - `name` string
  - `description` string, nullable
  - `sort_order` integer
  - `is_active` boolean

## Response `200`

Phase updated successfully

- object
  - `success` boolean
  - `data` TaskPhase
    - `id` string, uuid: Unique identifier
    - `name` string: Phase name
    - `slug` string: URL-friendly identifier
    - `description` string, nullable: Description of the phase
    - `sort_order` integer: Display order
    - `is_active` boolean: Whether the phase is active
    - `is_archived` boolean: Whether the phase is archived
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Invalid request body
- `401`: Unauthorized
- `404`: Phase not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
