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

# Update sync action group

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

Updates a sync action group.

## Path parameters

- `syncId` string, required — Id of the sync
- `id` string, required — Id of the action group

## Request body

- UpdateActionGroupDto
  - `name` string — Name of the action group.
  - `enabled` boolean — Enabled status of the action group.
  - `actions` ActionsDto — List of the actions that will be updated.
    - `added` 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
    - `updated` UpdatedActionDto[] — List of the actions that will be updated.
      - `id` string, required
      - `type` string
      - `name` string
      - `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
      - `actionMapping` ActionMappingDto — Action mapping of the action.
        - `type` string, required
        - `parameter` object
    - `deleted` string[] — List of the actions that will be deleted.

## Response `200`

Returned if the request is successful

- SyncAction — Update actions of the action group.
  - `id` string — Id of the action.
  - `name` string — Name of the action.
  - `type` string — Type of the action.
  - `enabled` boolean — Enabled status of the action.
  - `order` number, float — Order of the action.
  - `direction` 'incoming' | 'outgoing' — Direction of the action.
  - `actionGroupId` string — Id of the action group that the action belongs to.
  - `actionMapping` ActionMappingDto — Action mapping of the action.
    - `type` string, required
    - `parameter` object
  - `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
  - `fieldMappings` object — Field mappings of the action.
  - `properties` object — Properties of the action.

## Other responses

- `401` — Returned if the authentication credentials are incorrect
- `403` — Returned if the request user does not have permission to edit the sync or operation is not allowed.
- `404` — Returned if sync or sync action group 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)
