---
title: "Preview tag changes for team reassignment"
method: POST
path: "/api/jobs/backlog_items/team_change_preview"
tags: ["Backlog Item Handling Jobs"]
---

# Preview tag changes for team reassignment

`POST /api/jobs/backlog_items/team_change_preview`

## Request

- Base URL: `https://api.atono.io`
- URL: `https://api.atono.io/api/jobs/backlog_items/team_change_preview`
- Auth: API key in header `X-API-KEY`

Previews which tags will be affected when a backlog item is reassigned to a different team.

Team-scoped tags on the backlog item are analyzed:
- **matchedTags**: Tags that will be retained because the destination team has a tag
  with matching key AND value (case-insensitive comparison)
- **droppedTags**: Tags that will be removed because no matching tag exists in the
  destination team (either key or value mismatch)

Workspace-scoped tags are not affected by team changes and are not included in the preview.

## Request body

- RequestTeamChangePreviewResource
  - `data` TeamChangePreviewResource, required: JSON:API request resource for the team change preview endpoint. Used to preview which tags will be retained or dropped when a backlog item is reassigned to a different team.
    - `type` string, required
    - `relationships` TeamChangePreviewResourceRelationships, required
      - `backlogItem` SingleRelationship, required
        - `links` RelationshipLinks, required
          - `self` string, uri, nullable, required
          - `related` string, uri, nullable, required
        - `data` ResourceIdentifier, required
          - `type` string, required: Identifies the type of the linked resource.
          - `id` string, required: The unique identifier of the linked resource.
        - `meta` unknown, required
      - `team` SingleRelationshipUpdate, required
        - `data` ResourceIdentifier, required
          - `type` string, required: Identifies the type of the linked resource.
          - `id` string, required: The unique identifier of the linked resource.

## Response `200`

previewTeamChange 200 response

- SingleResourceBodyTeamChangePreviewResultResource
  - `data` TeamChangePreviewResultResource: The returned resource, based on the request.
    - `type` string, required
    - `id` string, required
    - `attributes` TeamChangePreviewResultResourceAttributes, required
      - `matchedTags` TeamChangePreviewResultResourceTagInfo[], required
        - `tagId` string, required
        - `tagKey` string, required
        - `tagValueId` string, required
        - `tagValue` string, required
      - `droppedTags` TeamChangePreviewResultResourceTagInfo[], required
        - `tagId` string, required
        - `tagKey` string, required
        - `tagValueId` string, required
        - `tagValue` string, required
    - `relationships` TeamChangePreviewResultResourceRelationships, required
      - `backlogItem` SingleRelationship, required
        - `links` RelationshipLinks, required
          - `self` string, uri, nullable, required
          - `related` string, uri, nullable, required
        - `data` ResourceIdentifier, required
          - `type` string, required: Identifies the type of the linked resource.
          - `id` string, required: The unique identifier of the linked resource.
        - `meta` unknown, required
      - `team` SingleRelationship, required
        - `links` RelationshipLinks, required
          - `self` string, uri, nullable, required
          - `related` string, uri, nullable, required
        - `data` ResourceIdentifier, required
          - `type` string, required: Identifies the type of the linked resource.
          - `id` string, required: The unique identifier of the linked resource.
        - `meta` unknown, required
  - `errors` ProblemDetail[]: A list of errors returned with the response, if the request could not be completed. Each object includes details about a specific issue.
    - `id` string: A unique identifier for this specific error occurrence. Useful for debugging and support.
    - `links` object, nullable: Links related to the error. May include a URL to relevant documentation or support resources.
    - `status` integer: The HTTP status code associated with the error (e.g., 400, 404, 422).
    - `code` string: An internal code that identifies the type or category of the error.
    - `title` string: A short summary of the problem.
    - `source` ProblemSource: Identifies the part of the request that caused the error. Only one source is present per error.
      - `pointer` string, nullable: Specifies the path to the field in the request body that caused the error.
      - `parameter` string, nullable: Identifies a query parameter in the request URL that caused the error.
      - `header` string, nullable: Identifies the request header that caused the error.
    - `detail` string: Additional information about the error, intended to provide more context than the title.
    - `meta` unknown
  - `meta` unknown
  - `included` unknown[]: A list of related resources included in the response, either automatically by the API or in response to an include parameter in the request. Each item contains a full resource object (e.g., users, teams, acceptance criteria).
    - unknown
  - `links` unknown

---

[API](https://skmtc.dev/atono/apis/backend-api.md) · [All operations](https://skmtc.dev/atono/apis/backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atono/apis/backend-api/revisions/78a57b1d8c3d?raw)
