---
title: "Bulk Update Story Links"
method: PATCH
path: "/api/v4/{workspace-slug}/story-links/bulk"
---

# Bulk Update Story Links

`PATCH /api/v4/{workspace-slug}/story-links/bulk`

## Request

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

Bulk Update Story Links updates multiple Story Links, and returns a paginated list of the updated Story Links.

## Path parameters

- `workspace-slug` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `order_by` 'updated_at'
- `order_dir` 'desc' | 'asc'
- `filter` 'all'
- `fields` string

## Request body

- Body1605147
  - `story_links` UpdateStoryLinkParams[], required: Payloads for each Story Link to update.
    - `id` integer, required: The unique ID of the Story Link to update.
    - `object_story_id` integer: The unique ID of the Story defined as object.
    - `subject_story_id` integer: The unique ID of the Story defined as subject.
    - `verb` 'blocks' | 'duplicates' | 'relates to': How the subject Story acts on the object Story. This can be one of: "blocks", "duplicates", "relates to"

## Response `200`

Resource

- StoryLinkEntityListWrapper
  - `$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` StoryLink[], required: The entities for this page.
    - `created_at` string, date-time: The time/date the Story Link was created.
    - `entity_type` 'story-link': The type of this entity.
    - `id` integer: The unique identifier of the Story Link.
    - `object` StorySlim: The Story this Checklist Item belongs to.
      - `app_url` string, required: The Shortcut application url for the Story.
      - `entity_type` 'story:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Story.
      - `name` string, required: The name of the Story.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `subject` StorySlim: The Story this Checklist Item belongs to.
      - `app_url` string, required: The Shortcut application url for the Story.
      - `entity_type` 'story:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Story.
      - `name` string, required: The name of the Story.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `updated_at` string, date-time: The time/date the Story Link was last updated.
    - `uri` string: A resolvable URI for the entity that will return the full representation.
    - `verb` 'blocks' | 'duplicates' | 'relates to': How the subject Story acts on the object Story. This can be "blocks", "duplicates", or "relates to".
  - `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)
