---
title: "Compute available target group transitions"
method: POST
path: "/demand/accounts/{account_id}/projects/{project_id}/compute-target-group-transitions"
tags: ["Target Groups"]
---

# Compute available target group transitions

`POST /demand/accounts/{account_id}/projects/{project_id}/compute-target-group-transitions`

## Request

- Base URL: `https://api.cint.com/v1`
- URL: `https://api.cint.com/v1/demand/accounts/{account_id}/projects/{project_id}/compute-target-group-transitions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/cint/apis/demand-api/docs/demand/accounts/:account_id/projects/:project_id/compute-target-group-transitions/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns all target group Ids for the given query parameters and the available possible actions on the returned set of target groups.

## Path parameters

- `account_id` integer, required: The account's unique identifier.
- `project_id` string, required: The character string representing a unique project ID (ULID format).

## Request body

- ComputeTargetGroupTransitionsRequest: Request body for computing target group transitions.
  - `search_string` string: Search string to match against. The string will be used to search based on the target group's name and/or the target group's human readable ID. Supports partial matching for target group name and human readable ID. Also supports English language stemmed matching for target group name.
  - `filters` ComputeTargetGroupTransitionsFilters: Filters for computing target group transitions.
    - `status` TargetGroupStatus[]
    - `country` string[]
    - `language` string[]
  - `included_target_group_ids` TargetGroupID[]: An array of unique target group identifiers to be processed in a bulk job.
  - `excluded_target_group_ids` TargetGroupID[]: An array of unique target group identifiers to be processed in a bulk job.

## Response `200`

Target group Ids with their possible actions.

- ComputeTargetGroupTransitionsResponse: Matching target group Id with their possible transitions.
  - `target_groups` TargetGroupID[]: An array of unique target group identifiers to be processed in a bulk job.
  - `is_launch_allowed` boolean
  - `is_pause_allowed` boolean
  - `is_resume_allowed` boolean
  - `is_relaunch_allowed` boolean
  - `is_finish_allowed` boolean

## Other responses

- `400`: A request is not valid and can't be processed.
- `401`: A request is unauthorized.
- `403`: A requested is forbidden.
- `404`: A requested resource isn't found.
- `500`: A request failed due to an internal error.

---

[API](https://skmtc.dev/cint/apis/demand-api.md) - [All operations](https://skmtc.dev/cint/apis/demand-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cint/apis/demand-api/revisions/077a4bdda5cb?raw)
