Send publish request for a set of policy rules

POST {{baseUrl}}/tap/publish

Send publish request of set of policy rules and returns the response.
Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.

Request Body

{"rules"=>[{"type"=>"TRANSFER", "action"=>"BLOCK", "asset"=>"<string>", "amountCurrency"=>"NATIVE", "amountScope"=>"SINGLE_TX", "amount"=>"<string>", "periodSec"=>"<number>", "operator"=>"<string>", "operators"=>{"wildcard"=>"*", "users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"], "services"=>["<string>", "<string>"]}, "transactionType"=>"REDEEM", "designatedSigner"=>"<string>", "designatedSigners"=>{"users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"]}, "srcType"=>"VAULT", "srcSubType"=>"CONTRACT", "srcId"=>"<string>", "src"=>{"ids"=>[["<string>"], ["<string>"]]}, "dstType"=>"NETWORK_CONNECTION", "dstSubType"=>"INTERNAL", "dstId"=>"<string>", "dst"=>{"ids"=>[["<string>"], ["<string>"]]}, "dstAddressType"=>"ONE_TIME", "authorizers"=>["<string>", "<string>"], "authorizersCount"=>"<number>", "authorizationGroups"=>{"logic"=>"AND", "allowOperatorAsAuthorizer"=>"<boolean>", "groups"=>[{"users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"], "th"=>"<number>"}, {"users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"], "th"=>"<number>"}]}, "amountAggregation"=>{"operators"=>"PER_SINGLE_MATCH", "srcTransferPeers"=>"PER_SINGLE_MATCH", "dstTransferPeers"=>"ACROSS_ALL_MATCHES"}, "rawMessageSigning"=>{"algorithm"=>"<string>", "derivationPath"=>{"path"=>["<number>", "<number>"]}}, "applyForApprove"=>"<boolean>", "applyForTypedMessage"=>"<boolean>", "externalDescriptor"=>"<string>"}, {"type"=>"TRANSFER", "action"=>"ALLOW", "asset"=>"<string>", "amountCurrency"=>"USD", "amountScope"=>"SINGLE_TX", "amount"=>"<string>", "periodSec"=>"<number>", "operator"=>"<string>", "operators"=>{"wildcard"=>"*", "users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"], "services"=>["<string>", "<string>"]}, "transactionType"=>"CONTRACT_CALL", "designatedSigner"=>"<string>", "designatedSigners"=>{"users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"]}, "srcType"=>"*", "srcSubType"=>"EXCHANGETEST", "srcId"=>"<string>", "src"=>{"ids"=>[["<string>"], ["<string>"]]}, "dstType"=>"VAULT", "dstSubType"=>"INTERNAL", "dstId"=>"<string>", "dst"=>{"ids"=>[["<string>"], ["<string>"]]}, "dstAddressType"=>"ONE_TIME", "authorizers"=>["<string>", "<string>"], "authorizersCount"=>"<number>", "authorizationGroups"=>{"logic"=>"OR", "allowOperatorAsAuthorizer"=>"<boolean>", "groups"=>[{"users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"], "th"=>"<number>"}, {"users"=>["<string>", "<string>"], "usersGroups"=>["<string>", "<string>"], "th"=>"<number>"}]}, "amountAggregation"=>{"operators"=>"PER_SINGLE_MATCH", "srcTransferPeers"=>"ACROSS_ALL_MATCHES", "dstTransferPeers"=>"ACROSS_ALL_MATCHES"}, "rawMessageSigning"=>{"algorithm"=>"<string>", "derivationPath"=>{"path"=>["<number>", "<number>"]}}, "applyForApprove"=>"<boolean>", "applyForTypedMessage"=>"<boolean>", "externalDescriptor"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Idempotency-KeystringA 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.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;AWAITING_QUORUM&quot;,&quot;rules&quot;:[{&quot;type&quot;:&quot;TRANSFER&quot;,&quot;action&quot;:&quot;2-TIER&quot;,&quot;asset&quot;:&quot;\u003cstring\u003e&quot;,&quot;amountCurrency&quot;:&quot;EUR&quot;,&quot;amountScope&quot;:&quot;SINGLE_TX&quot;,&quot;amount&quot;:&quot;\u003cstring\u003e&quot;,&quot;periodSec&quot;:&quot;\u003cnumber\u003e&quot;,&quot;operator&quot;:&quot;\u003cstring\u003e&quot;,&quot;operators&quot;:{&quot;wildcard&quot;:&quot;*&quot;,&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;services&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;transactionType&quot;:&quot;TRANSFER&quot;,&quot;designatedSigner&quot;:&quot;\u003cstring\u003e&quot;,&quot;designatedSigners&quot;:{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;srcType&quot;:&quot;FIAT_ACCOUNT&quot;,&quot;srcSubType&quot;:&quot;CONTRACT&quot;,&quot;srcId&quot;:&quot;\u003cstring\u003e&quot;,&quot;src&quot;:{&quot;ids&quot;:[[&quot;\u003cstring\u003e&quot;],[&quot;\u003cstring\u003e&quot;]]},&quot;dstType&quot;:&quot;UNMANAGED&quot;,&quot;dstSubType&quot;:&quot;EXCHANGETEST&quot;,&quot;dstId&quot;:&quot;\u003cstring\u003e&quot;,&quot;dst&quot;:{&quot;ids&quot;:[[&quot;\u003cstring\u003e&quot;],[&quot;\u003cstring\u003e&quot;]]},&quot;dstAddressType&quot;:&quot;ONE_TIME&quot;,&quot;authorizers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;authorizersCount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;authorizationGroups&quot;:{&quot;logic&quot;:&quot;OR&quot;,&quot;allowOperatorAsAuthorizer&quot;:&quot;\u003cboolean\u003e&quot;,&quot;groups&quot;:[{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;th&quot;:&quot;\u003cnumber\u003e&quot;},{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;th&quot;:&quot;\u003cnumber\u003e&quot;}]},&quot;amountAggregation&quot;:{&quot;operators&quot;:&quot;PER_SINGLE_MATCH&quot;,&quot;srcTransferPeers&quot;:&quot;ACROSS_ALL_MATCHES&quot;,&quot;dstTransferPeers&quot;:&quot;ACROSS_ALL_MATCHES&quot;},&quot;rawMessageSigning&quot;:{&quot;algorithm&quot;:&quot;\u003cstring\u003e&quot;,&quot;derivationPath&quot;:{&quot;path&quot;:[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]}},&quot;applyForApprove&quot;:&quot;\u003cboolean\u003e&quot;,&quot;applyForTypedMessage&quot;:&quot;\u003cboolean\u003e&quot;,&quot;externalDescriptor&quot;:&quot;\u003cstring\u003e&quot;},{&quot;type&quot;:&quot;TRANSFER&quot;,&quot;action&quot;:&quot;2-TIER&quot;,&quot;asset&quot;:&quot;\u003cstring\u003e&quot;,&quot;amountCurrency&quot;:&quot;NATIVE&quot;,&quot;amountScope&quot;:&quot;TIMEFRAME&quot;,&quot;amount&quot;:&quot;\u003cstring\u003e&quot;,&quot;periodSec&quot;:&quot;\u003cnumber\u003e&quot;,&quot;operator&quot;:&quot;\u003cstring\u003e&quot;,&quot;operators&quot;:{&quot;wildcard&quot;:&quot;*&quot;,&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;services&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;transactionType&quot;:&quot;SUPPLY&quot;,&quot;designatedSigner&quot;:&quot;\u003cstring\u003e&quot;,&quot;designatedSigners&quot;:{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;srcType&quot;:&quot;COMPOUND&quot;,&quot;srcSubType&quot;:&quot;EXTERNAL&quot;,&quot;srcId&quot;:&quot;\u003cstring\u003e&quot;,&quot;src&quot;:{&quot;ids&quot;:[[&quot;\u003cstring\u003e&quot;],[&quot;\u003cstring\u003e&quot;]]},&quot;dstType&quot;:&quot;EXCHANGE&quot;,&quot;dstSubType&quot;:&quot;EXCHANGETEST&quot;,&quot;dstId&quot;:&quot;\u003cstring\u003e&quot;,&quot;dst&quot;:{&quot;ids&quot;:[[&quot;\u003cstring\u003e&quot;],[&quot;\u003cstring\u003e&quot;]]},&quot;dstAddressType&quot;:&quot;ONE_TIME&quot;,&quot;authorizers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;authorizersCount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;authorizationGroups&quot;:{&quot;logic&quot;:&quot;OR&quot;,&quot;allowOperatorAsAuthorizer&quot;:&quot;\u003cboolean\u003e&quot;,&quot;groups&quot;:[{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;th&quot;:&quot;\u003cnumber\u003e&quot;},{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;usersGroups&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;th&quot;:&quot;\u003cnumber\u003e&quot;}]},&quot;amountAggregation&quot;:{&quot;operators&quot;:&quot;PER_SINGLE_MATCH&quot;,&quot;srcTransferPeers&quot;:&quot;ACROSS_ALL_MATCHES&quot;,&quot;dstTransferPeers&quot;:&quot;PER_SINGLE_MATCH&quot;},&quot;rawMessageSigning&quot;:{&quot;algorithm&quot;:&quot;\u003cstring\u003e&quot;,&quot;derivationPath&quot;:{&quot;path&quot;:[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]}},&quot;applyForApprove&quot;:&quot;\u003cboolean\u003e&quot;,&quot;applyForTypedMessage&quot;:&quot;\u003cboolean\u003e&quot;,&quot;externalDescriptor&quot;:&quot;\u003cstring\u003e&quot;}],&quot;checkResult&quot;:{&quot;errors&quot;:&quot;\u003cnumber\u003e&quot;,&quot;results&quot;:[{&quot;index&quot;:&quot;\u003cnumber\u003e&quot;,&quot;status&quot;:&quot;failure&quot;,&quot;errors&quot;:[{&quot;errorMessage&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorCode&quot;:&quot;\u003cnumber\u003e&quot;,&quot;errorCodeName&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorField&quot;:&quot;designatedSigners&quot;},{&quot;errorMessage&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorCode&quot;:&quot;\u003cnumber\u003e&quot;,&quot;errorCodeName&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorField&quot;:&quot;operator&quot;}]},{&quot;index&quot;:&quot;\u003cnumber\u003e&quot;,&quot;status&quot;:&quot;ok&quot;,&quot;errors&quot;:[{&quot;errorMessage&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorCode&quot;:&quot;\u003cnumber\u003e&quot;,&quot;errorCodeName&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorField&quot;:&quot;amountAggregation&quot;},{&quot;errorMessage&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorCode&quot;:&quot;\u003cnumber\u003e&quot;,&quot;errorCodeName&quot;:&quot;\u003cstring\u003e&quot;,&quot;errorField&quot;:&quot;amountAggregation&quot;}]}]},&quot;metadata&quot;:{&quot;editedBy&quot;:&quot;\u003cstring\u003e&quot;,&quot;editedAt&quot;:&quot;\u003cstring\u003e&quot;,&quot;publishedBy&quot;:&quot;\u003cstring\u003e&quot;,&quot;publishedAt&quot;:&quot;\u003cstring\u003e&quot;}}