---
title: "Update build sequence"
method: PUT
path: "/api/sync/{mapId}/build-order"
tags: ["Sync"]
---

# Update build sequence

`PUT /api/sync/{mapId}/build-order`

## Request

- Base URL: `https://intentdocs.com`
- URL: `https://intentdocs.com/api/sync/{mapId}/build-order`
- Auth: none declared

Set a custom implementation order for stories.

## Path parameters

- `mapId` string, required

## Request body

- object
  - `order` string[], required: Ordered list of story IDs

## Response `200`

Build order updated

- object
  - `order` BuildOrderStory[]
    - `id` string
    - `title` string
    - `activity` string
    - `effort` 'XS' | 'S' | 'M' | 'L' | 'XL'
    - `priority` 'must' | 'should' | 'could'
    - `status` 'todo' | 'in_progress' | 'needs_rework' | 'done' | 'approved'
    - `build_sequence` number, nullable
    - `depends_on` string[]
    - `reason` string, nullable
  - `generated_at` string, nullable
  - `mode` 'manual'

## Other responses

- `400`: Invalid story IDs or order
- `401`: No CLI bearer, or no standing on the map's project

---

[API](https://skmtc.dev/intentdocs/apis/intentdocs-api.md) · [All operations](https://skmtc.dev/intentdocs/apis/intentdocs-api/llms.txt) · [OpenAPI document](https://skmtc.dev/intentdocs/apis/intentdocs-api/revisions/28abdea021d0?raw)
