Skip to main content
POST
/
tap
/
draft
TypeScript
const response: Promise<FireblocksResponse<LegacyPublishResult>> = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);
{
  "status": "SUCCESS",
  "rules": [
    {
      "type": "TRANSFER",
      "action": "ALLOW",
      "asset": "<string>",
      "amountCurrency": "USD",
      "amountScope": "SINGLE_TX",
      "amount": "<string>",
      "periodSec": 123,
      "operator": "<string>",
      "operators": {
        "wildcard": "*",
        "users": [
          "<string>"
        ],
        "usersGroups": [
          "<string>"
        ],
        "services": [
          "<string>"
        ]
      },
      "transactionType": "TRANSFER",
      "designatedSigner": "<string>",
      "designatedSigners": {
        "users": [
          "<string>"
        ],
        "usersGroups": [
          "<string>"
        ]
      },
      "srcType": "EXCHANGE",
      "srcSubType": "EXTERNAL",
      "srcId": "<string>",
      "src": {
        "ids": [
          [
            "<string>"
          ]
        ]
      },
      "dstType": "EXCHANGE",
      "dstSubType": "EXTERNAL",
      "dstId": "<string>",
      "dst": {
        "ids": [
          [
            "<string>"
          ]
        ]
      },
      "dstAddressType": "WHITELISTED",
      "authorizers": [
        "<string>"
      ],
      "authorizersCount": 123,
      "authorizationGroups": {
        "logic": "AND",
        "allowOperatorAsAuthorizer": true,
        "groups": [
          {
            "users": [
              "<string>"
            ],
            "usersGroups": [
              "<string>"
            ],
            "th": 123
          }
        ]
      },
      "amountAggregation": {
        "operators": "PER_SINGLE_MATCH",
        "srcTransferPeers": "PER_SINGLE_MATCH",
        "dstTransferPeers": "PER_SINGLE_MATCH"
      },
      "rawMessageSigning": {
        "algorithm": "<string>",
        "derivationPath": {
          "path": [
            123
          ]
        }
      },
      "applyForApprove": true,
      "applyForTypedMessage": true,
      "externalDescriptor": "<string>"
    }
  ],
  "checkResult": {
    "errors": 123,
    "results": [
      {
        "index": 123,
        "status": "ok",
        "errors": [
          {
            "errorMessage": "<string>",
            "errorCode": 123,
            "errorCodeName": "<string>",
            "errorField": "operator"
          }
        ]
      }
    ]
  },
  "metadata": {
    "editedBy": "<string>",
    "editedAt": "<string>",
    "publishedBy": "<string>",
    "publishedAt": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://fireblocks-43c4b3ee-chore-add-cli.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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
draftId
string

draft unique identifier

Response

A policy publish result object

Response object of the publish policy operation

status
enum<string>
required
  • SUCCESS - success
  • UNVALIDATED - not validated yet
  • INVALID_CONFIGURATION - at least one rule is invalid
  • PENDING - pending approval
  • PENDING_CONSOLE_APPROVAL - pending approval from the console app
  • AWAITING_QUORUM - pending quorum approval
  • UNHANDLED_ERROR - unhandled error
Available options:
SUCCESS,
UNVALIDATED,
INVALID_CONFIGURATION,
PENDING,
PENDING_CONSOLE_APPROVAL,
AWAITING_QUORUM,
UNHANDLED_ERROR
rules
object[]
required
checkResult
object
required

Policy rules validation result

metadata
object
required

Policy related metadata