Skip to main content
PUT
/
tap
/
draft
TypeScript
const response: Promise<FireblocksResponse<LegacyDraftReviewAndValidationResponse>> = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);
{
  "draftResponse": {
    "status": "<string>",
    "rules": [
      {
        "type": "TRANSFER",
        "asset": "<string>",
        "amount": "<string>",
        "periodSec": 123,
        "operator": "<string>",
        "operators": {
          "wildcard": "*",
          "users": [
            "<string>"
          ],
          "usersGroups": [
            "<string>"
          ],
          "services": [
            "<string>"
          ]
        },
        "designatedSigner": "<string>",
        "designatedSigners": {
          "users": [
            "<string>"
          ],
          "usersGroups": [
            "<string>"
          ]
        },
        "srcId": "<string>",
        "src": {
          "ids": [
            [
              "<string>"
            ]
          ]
        },
        "dstId": "<string>",
        "dst": {
          "ids": [
            [
              "<string>"
            ]
          ]
        },
        "authorizers": [
          "<string>"
        ],
        "authorizersCount": 123,
        "authorizationGroups": {
          "allowOperatorAsAuthorizer": true,
          "groups": [
            {
              "users": [
                "<string>"
              ],
              "usersGroups": [
                "<string>"
              ],
              "th": 123
            }
          ]
        },
        "amountAggregation": {},
        "rawMessageSigning": {
          "algorithm": "<string>",
          "derivationPath": {
            "path": [
              123
            ]
          }
        },
        "applyForApprove": true,
        "applyForTypedMessage": true,
        "externalDescriptor": "<string>"
      }
    ],
    "draftId": "<string>",
    "metadata": {
      "editedBy": "<string>",
      "editedAt": "<string>",
      "publishedBy": "<string>",
      "publishedAt": "<string>"
    }
  },
  "validation": {
    "status": "<string>",
    "checkResult": {
      "errors": 123,
      "results": [
        {
          "index": 123,
          "errors": [
            {
              "errorMessage": "<string>",
              "errorCode": 123,
              "errorCodeName": "<string>"
            }
          ]
        }
      ]
    }
  }
}

Headers

Idempotency-Key
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Body

application/json
rules
object[]

Policy rules

Response

A draft validation response object

Draft validation

draftResponse
object
required

Response object for draft operations

validation
object
required

Policy validation object