---
search:
  tags:
    - tasks
    - POST
seo:
  description: >-
    Updates the horizontal order of task type groups (e.g., Feature, Bug,…
    Reference for the POST /tasks/pool/group-order endpoint in the Leadtime
    Public API API.
sidebar:
  badge: POST
  label: Update group/type order within a project in a pool
title: Update group/type order within a project in a pool
type: openapi-operation
---
Updates the horizontal order of task type groups (e.g., Feature, Bug, Task) within a specific project in a pool for a specific accountable user. Groups are displayed as columns within each project row, and this endpoint allows you to customize which task types appear first.

**Important**: The pool contains tasks filtered by the Accountable field (not the Assigned field). Only tasks where the accountableId user is set as the Accountable person are included in the pool.

This endpoint updates the PoolTypeProjectOrder table, which stores the custom sort order for task type groups within each project for each accountable user. The order determines how task types are displayed horizontally within each project row in the pool view.

The newOrder array should contain all task type IDs that need to be reordered, in the desired sequence (first item = leftmost position).

Permission requirements:
- Pool.canEditAll: Can edit any user's pool group order
- Pool.canEditOwnTeams: Can edit pools of users in the same team (requires team membership verification)
- Pool.canEditOwn: Can only edit your own pool group order (accountableId must match authenticated user.id)

The accountableId must reference a valid user in the same workspace who is not deleted. The projectId must reference a valid project in the same workspace.

<Operation source="api-reference" id="taskspoolcontroller-updatepoolgrouporder" />
