---
title: "Update integration action"
method: PATCH
path: "/api/{cloudId}/v1/integrations/{integrationId}/actions/{id}"
tags: ["Integration actions"]
---

# Update integration action

`PATCH /api/{cloudId}/v1/integrations/{integrationId}/actions/{id}`

Updates an integration action. <br> <br> **Permissions required:** Permission to update the integration action:
 - the user has read-only administrative right. 
 - the user is the admin of the team that the integration belongs to.

## Path parameters

- `integrationId` string, required
- `id` string, required

## Request body

- UpdateIntegrationActionRequest
  - `name` string — Name of the action.
  - `enabled` boolean — This parameter is for specifying whether the integration action will be enabled or not. Defaults to false
  - `filter` Filter
    - `conditionsEmpty` boolean — Indicates whether the condition is empty or not.
    - `conditionMatchType` 'match-all' | 'match-any-condition' | 'match-all-conditions' — It is condition match type of the action. It can be *match-all*, *match-any-condition* or *match-all-conditions*
    - `conditions` IntegrationCondition[] — List of the filter conditions.
      - `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 — Action specific properties of the action.
  - `fieldMappings` object — The fields mapping between payload and alert fields.
  - `actionMapping` ActionMapping
    - `type` string, required
    - `parameter` object

## Response `200`

Returned if the request is successful.

- Integration
  - `id` string — ID of the integration.
  - `type` string — Type of the integration.
  - `name` string — Name of the integration.
  - `enabled` boolean — Indicates whether the integration is enabled or not.
  - `teamId` string — ID of the team that integration belongs to.
  - `typeSpecificProperties` object — Integration specific properties.

## Other responses

- `401` — Returned if the authentication credentials are incorrect.
- `403` — Returned if the request user does not have permission to update the integration action.
- `404` — Returned if the integration or the integration action is not found.
- `422` — Returned if the payload cannot be 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)
