---
title: "Create sync action group"
method: POST
path: "/api/{cloudId}/v1/syncs/{syncId}/action-groups"
tags: ["Sync action groups"]
---

# Create sync action group

`POST /api/{cloudId}/v1/syncs/{syncId}/action-groups`

Creates a sync action group

## Path parameters

- `syncId` string, required — Id of the sync

## Request body

- CreateActionGroupDto
  - `type` 'forwarding' | 'updating' | 'checkbox', required — Type of the action group. It can be *forwarding*, *updating* or *checkbox*.
  - `name` string, required — Name of the action group.
  - `order` number, float — Order of the action group.
  - `enabled` boolean — Enabled status of the action group.
  - `rootAction` AddedActionDto — List of the actions that will be created.
    - `type` string, required
    - `name` string, required
    - `enabled` boolean
    - `filter` FilterDto — Filter of the action.
      - `conditionsEmpty` boolean
      - `conditionMatchType` 'match-all' | 'match-any-condition' | 'match-all-conditions'
      - `conditions` IntegrationConditionDto[]
        - `order` integer
        - `field` string, required
        - `expectedValue` string
        - `not` boolean
        - `operation` 'matches' | 'contains' | 'starts-with' | 'ends-with' | 'equals' | 'contains-key' | 'contains-value' | 'greater-than' | 'less-than' | 'is-empty' | 'equals-ignore-whitespace', required
        - `key` string
        - `systemCondition` boolean
    - `typeSpecificProperties` object
    - `fieldMappings` object — You can use field search API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-search-get) to find id or name of the fields while populating fieldMappings for outgoing root actions.
    - `actionMapping` ActionMappingDto — Action mapping of the action.
      - `type` string, required
      - `parameter` object
  - `updateActions` AddedActionDto[] — List of the actions that will be created.
    - `type` string, required
    - `name` string, required
    - `enabled` boolean
    - `filter` FilterDto — Filter of the action.
      - `conditionsEmpty` boolean
      - `conditionMatchType` 'match-all' | 'match-any-condition' | 'match-all-conditions'
      - `conditions` IntegrationConditionDto[]
        - `order` integer
        - `field` string, required
        - `expectedValue` string
        - `not` boolean
        - `operation` 'matches' | 'contains' | 'starts-with' | 'ends-with' | 'equals' | 'contains-key' | 'contains-value' | 'greater-than' | 'less-than' | 'is-empty' | 'equals-ignore-whitespace', required
        - `key` string
        - `systemCondition` boolean
    - `typeSpecificProperties` object
    - `fieldMappings` object — You can use field search API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-search-get) to find id or name of the fields while populating fieldMappings for outgoing root actions.
    - `actionMapping` ActionMappingDto — Action mapping of the action.
      - `type` string, required
      - `parameter` object

## Response `200`

Returned if the request is successful

- SyncActionGroupMetadataDto
  - `id` string — Id of the action group.
  - `type` 'forwarding' | 'updating' — Type of the action group.
  - `name` string — Name of the action group.
  - `order` number, float — Order of the action group.
  - `enabled` boolean — Enabled status of the action group.

## Other responses

- `401` — Returned if the authentication credentials are incorrect
- `403` — Returned if the request user does not have permission to create the sync or operation is not allowed.
- `404` — Returned if sync is not found
- `422` — Returned if the payload is not validated

---

[API](https://skmtc.net/atlassian/apis/jsm-operations-api.md) · [All operations](https://skmtc.net/atlassian/apis/jsm-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/jsm-operations-api/versions/ed65f017bcb8/schema)
