# Revoke operation block **NOTE**: This v2 endpoint serves as a replacement for the v1 version. Cancels a previously configured operation block. # OpenAPI definition ```json { "openapi": "3.0.0", "info": { "title": "Banking - Transaction banking", "version": "0.9.0", "description": "Transaction banking API", "contact": { "name": "API Support", "url": "https://developers.pismo.io/support/" }, "license": { "name": "Copyright Pismo" } }, "servers": [ { "url": "https://sandbox.pismolabs.io", "description": "Sandbox API server for testing" } ], "security": [ { "BearerAuth": [] } ], "tags": [ { "name": "Operations blocks", "description": "Operations blocks endpoints" } ], "components": { "parameters": { "OperationsBlockV2IDPath": { "name": "operationsBlockId", "in": "path", "description": "Operations block ID", "schema": { "type": "string", "format": "uuid" }, "example": "e4adf199-c925-4d11-b002-c5bfd5679030", "required": true } }, "schemas": { "ErrorCode": { "description": "Error code\n`minLength: 1`\n`maxLength: 12`\n", "type": "string", "minLength": 1, "maxLength": 12, "example": "WPMT0017" }, "ErrorMessage": { "description": "Error message\n`minLength: 1`\n`maxLength: 1000`\n", "type": "string", "minLength": 1, "maxLength": 1000, "example": "Invalid JSON payload received: Error unmarshalling request" }, "ErrorResponse": { "type": "object", "properties": { "code": { "$ref": "#/components/schemas/ErrorCode" }, "message": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "responses": { "204NoContent": { "description": "No Content" }, "500InternalServer": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" }, "examples": { "Generic internal error": { "value": { "code": "ECMN9999", "message": "Internal error" } } } } } } }, "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" } } }, "paths": { "/corporate/v2/operations-blocks/{operationsBlockId}": { "delete": { "summary": "Revoke operation block", "operationId": "corporate-delete-v2-operation-block-id", "description": "**NOTE**: This v2 endpoint serves as a replacement for the v1 version.\n\nCancels a previously configured operation block.\n", "parameters": [ { "$ref": "#/components/parameters/OperationsBlockV2IDPath" } ], "tags": [ "Operations blocks" ], "responses": { "204": { "$ref": "#/components/responses/204NoContent" }, "400": { "description": "Bad request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" }, "examples": { "Operation block is not active": { "value": { "code": "WOBK0009", "message": "Operation block is not active" } }, "Invalid id parameter": { "value": { "code": "WOBK0005", "message": "Invalid id parameter" } } } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" }, "examples": { "Operation block not found": { "value": { "code": "WOBK0006", "message": "Operation block not found" } } } } } }, "500": { "$ref": "#/components/responses/500InternalServer" } } } } } } ```