---
title: "Bulk update AMM rule priorities"
method: PUT
path: "/programs/{programCode}/accounts/{accountIdentifier}/ammRulePriority"
tags: ["AMMRule"]
---

# Bulk update AMM rule priorities

`PUT /programs/{programCode}/accounts/{accountIdentifier}/ammRulePriority`

Updates the priorities of multiple Auto Money Movement (AMM) rules for the specified account.

## Path parameters

- `programCode` string, required
- `accountIdentifier` string, required

## Headers

- `X-GD-RequestId` string, required

## Request body

- UpdateAMMRulePriorityRequest — Represents a request to update the priorities of Automated Money Movement (AMM) rules for an account. Contains the source account identifier and a list of rule priorities to update. Inherits standard request metadata from Gd.Bos.DataTransfer.Request.RequestBase.
  - `rulePriorities` AMMRulePriority[], required — The list of AMM rule priorities to update. Each Gd.Bos.DataTransfer.AMMRulePriority includes the rule ID and the new priority value.
    - `ruleID` integer — The unique identifier for the AMM rule.
    - `rulePriority` integer — The priority value assigned to the AMM rule. Lower values typically indicate higher execution priority.

## Response `200`

OK

- UpdateAMMRulePriorityResponse — Represents the response returned after updating the priority of an Automated Money Movement (AMM) rule. Used to indicate the outcome of an AMM rule priority update operation. Inherits standard response metadata from Gd.Bos.DataTransfer.Response.ResponseBase.
  - `responseDetails` ResponseDetail[], nullable — Required: A list of response details providing status codes, descriptions, and additional information about the result of the operation.
    - `code` integer — The primary status or error code for the response (e.g., 200 for success, 400 for validation error).
    - `subCode` integer, nullable — An optional subcode providing more granular detail about the response or error.
    - `description` string, nullable — A human-readable description of the response, error, or status.
    - `url` string, nullable — A URL linking to documentation or a web page with more information about the response code.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/greendot/apis/baas-apis.md) · [All operations](https://skmtc.net/greendot/apis/baas-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/greendot/baas-apis/versions/666553766b78/schema)
