---
title: "Update operation block"
method: PATCH
path: "/corporate/v2/operations-blocks/{operationsBlockId}"
tags: ["Operations blocks"]
---

# Update operation block

`PATCH /corporate/v2/operations-blocks/{operationsBlockId}`

**NOTE**: This v2 endpoint serves as a replacement for the v1 version.

Updates operation block properties.<br>
You can use `allowed_operations` to allow certain financial transactions.

## Path parameters

- `operationsBlockId` string, uuid, required

## Request body

- PatchOperationsBlockV2Request — Update operation block request body
  - `description` string — Operations block description
  - `allowed_operations` OperationsBlocksOperation[] — List of operations allowed to bypass the block enforcement logic.<br> - `EARMARK_RELEASE`: Release an earmark even when an operation block is active. - `EARMARK_UPDATE`: Update an earmark (set amount, increase, or decrease) while the account is blocked by an operation block. - `PAYMENT_DEBIT`: Execute a debit transaction while the account is blocked by an operation block. - `PAYMENT_CREDIT`: Execute a credit transaction while the account is blocked by an operation block. - `PAYMENT_CONFIRM`: Confirm a value transaction while the account is blocked by an operation block. - `PAYMENT_CANCEL`: Cancel an existing transaction while the account is blocked by an operation block. - `ACCOUNT_STATUS_UPDATE`: Change the account status and the associated status reason. - `CHECK_POST`: Post a check while the account is blocked by an operation block. - `CHECK_RELEASE`: Release an uncleared check or operation while the account is blocked by an operation block. - `CHECK_CANCEL`: Cancel an existing check while the account is blocked by an operation block. - `RESTRICTED_FUNDS_CREATE`: Hold a specified amount by transferring it from the available balance to restricted funds. - `RESTRICTED_FUNDS_RELEASE`: Release restricted funds from hold. This transfers funds from restricted funds back to available balance.

## Response `200`

OK

- OperationsBlockV2 — Operations block
  - `block_id` string, uuid, required — Operations block ID
  - `description` string, required — Operations block description
  - `status` 'ACTIVE' | 'DEACTIVATED', required — Status of the operations block.
  - `created_at` string, date-time, required — Operation block creation timestamp (ISO 8601). Format = `YYYY-MM-DDTHH:mm:ss.sssssssssZ`.
  - `division_code` string — Code used to identify your division within the organization. Division code should only contain letters, numbers, and hyphens.
  - `program_id` number — Pismo program ID.
  - `allowed_operations` OperationsBlocksOperation[] — List of operations allowed to bypass the block enforcement logic.<br> - `EARMARK_RELEASE`: Release an earmark even when an operation block is active. - `EARMARK_UPDATE`: Update an earmark (set amount, increase, or decrease) while the account is blocked by an operation block. - `PAYMENT_DEBIT`: Execute a debit transaction while the account is blocked by an operation block. - `PAYMENT_CREDIT`: Execute a credit transaction while the account is blocked by an operation block. - `PAYMENT_CONFIRM`: Confirm a value transaction while the account is blocked by an operation block. - `PAYMENT_CANCEL`: Cancel an existing transaction while the account is blocked by an operation block. - `ACCOUNT_STATUS_UPDATE`: Change the account status and the associated status reason. - `CHECK_POST`: Post a check while the account is blocked by an operation block. - `CHECK_RELEASE`: Release an uncleared check or operation while the account is blocked by an operation block. - `CHECK_CANCEL`: Cancel an existing check while the account is blocked by an operation block. - `RESTRICTED_FUNDS_CREATE`: Hold a specified amount by transferring it from the available balance to restricted funds. - `RESTRICTED_FUNDS_RELEASE`: Release restricted funds from hold. This transfers funds from restricted funds back to available balance.
  - `updated_at` string, date-time — Operation block last update timestamp (ISO 8601). Format = `YYYY-MM-DDTHH:mm:ss.sssssssssZ`.

## Other responses

- `400` — Bad request
- `404` — Not Found
- `500` — Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-authentication.md) · [All operations](https://skmtc.dev/pismo/apis/platform-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pismo/platform-authentication/revisions/935b62e16de4/schema)
