---
title: "Bulk Update Teams"
method: PATCH
path: "/api/v4/{workspace-slug}/teams/bulk"
---

# Bulk Update Teams

`PATCH /api/v4/{workspace-slug}/teams/bulk`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/teams/bulk`
- Auth: HTTP bearer

Updates multiple Teams and returns a paginated list of the updated Teams.

## Path parameters

- `workspace-slug` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `order_by` 'name' | 'updated_at'
- `order_dir` 'desc' | 'asc'
- `filter` 'exclude_archived' | 'include_archived'
- `fields` string

## Request body

- Body1605197
  - `teams` BulkUpdateTeamsParams1[], required: Payloads for each Team to update.
    - `id` string, uuid, required: The UUID of the Team to update.
    - `archived` boolean: Whether the Team is archived.
    - `card_aging_mode` 'off' | 'gradual' | 'immediate', nullable: The card aging mode for stories in this Team: "gradual" (fixed fade steps at 1, 2, and 4 weeks), "immediate", or "off" (explicitly disabled for this Team). Set to null to inherit the Workspace default (also clears card_aging_threshold_days).
    - `card_aging_threshold_days` integer, nullable: The number of days an in-progress Story can go without activity before it is considered stale. Required when card_aging_mode is "immediate"; not allowed otherwise.
    - `color` string, css-color, nullable: The hex color to be displayed with the Team (for example, "#ff0000"). Set to null to clear.
    - `color_key` 'blue' | 'purple' | 'midnight-blue' | 'orange' | 'yellow-green' | 'brass' | 'gray' | 'fuchsia' | 'yellow' | 'pink' | 'sky-blue' | 'green' | 'red' | 'black' | 'slate' | 'turquoise', nullable: The color key to be displayed with the Team. Set to null to clear.
    - `default_workflow_id` integer, nullable: The ID of the default Workflow for Stories created in this Team. Set to null to clear.
    - `description` string: The Team's description.
    - `member_ids` string[]: An array of UUIDs for Members to set as the Team's members. Replaces current members.
    - `member_ids_add` string[]: An array of UUIDs for Members to add to the Team.
    - `member_ids_remove` string[]: An array of UUIDs for Members to remove from the Team.
    - `mention_name` string: The Team's mention name.
    - `name` string: The Team's name.
    - `workflow_ids` integer[]: An array of IDs for Workflows to associate with the Team. Replaces current Workflows.
    - `workflow_ids_add` integer[]: An array of IDs for Workflows to add to the Team.
    - `workflow_ids_remove` integer[]: An array of IDs for Workflows to remove from the Team.

## Response `200`

Resource

- TeamEntityListWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `current_items` integer, required: The number of items on the current page.
  - `current_page` integer, required: The number of the current page.
  - `entities` Team[], required: The entities for this page.
    - `app_url` string: The Shortcut application url for the Team.
    - `archived` boolean: True if the Team has been archived.
    - `card_aging_mode` 'off' | 'gradual' | 'immediate', nullable: The card aging mode for stories in this Team: "gradual" or "immediate". Null if card aging is off.
    - `card_aging_threshold_days` integer, nullable: The number of days an in-progress Story can go without activity before it is considered stale.
    - `color` string, css-color, nullable: The hex color to be displayed with the Team (for example, "#ff0000").
    - `color_key` 'blue' | 'purple' | 'midnight-blue' | 'orange' | 'yellow-green' | 'brass' | 'gray' | 'fuchsia' | 'yellow' | 'pink' | 'sky-blue' | 'green' | 'red' | 'black' | 'slate' | 'turquoise', nullable: The color key to be displayed with the Team.
    - `created_at` string, date-time: The time/date the Team was created.
    - `default_workflow` WorkflowSlim: The default Workflow for the Workspace the caller is authenticated against.
      - `entity_type` 'workflow:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Workflow.
      - `name` string, required: The name of the Workflow.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `description` string: The description of the Team.
    - `entity_type` 'team': The type of this entity.
    - `id` string, uuid: The unique ID of the Team.
    - `members` NestedMemberSlimList: The Members who followers of the Doc.
      - `current_items` integer, required
      - `entities` MemberSlim[], required
        - `entity_type` 'member:slim', required: The type of this entity.
        - `id` string, uuid, required: The unique ID of the Member.
        - `name` string, required: The name of the Member.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `mention_name` string, nullable: The Team's mention name, used to @mention the team in text fields.
    - `name` string: The name of the Team.
    - `updated_at` string, date-time: The time/date the Team was last updated.
    - `uri` string: A resolvable URI for the entity that will return the full representation.
    - `workflows` NestedWorkflowSlimList: A list of Workflows associated with this Team.
      - `current_items` integer, required
      - `entities` WorkflowSlim[], required
        - `entity_type` 'workflow:slim', required: The type of this entity.
        - `id` integer, required: The unique ID of the Workflow.
        - `name` string, required: The name of the Workflow.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
  - `total_items` integer, required: The number of total items across all pages.
  - `total_pages` integer, required: The total number of pages.
  - `next_page_url` string: A URL to get the next page. Will be absent on the last page.

## Other responses

- `400`: Schema mismatch
- `404`: Resource does not exist
- `422`: Unprocessable

---

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