/editTransactionPolicyForSwagger
1 min
POST
http://1.1.1.1/editTransactionPolicyForSwagger
idstringrandom UUID generated by the client
namestringthe name to the new policy
user_idsarrayinitiator User IDs (should be empty if all_users is True)
user_group_idsarrayinitiator User Group IDs (should be empty if all_users is True)
all_usersboolean<p>all users are allowed to be initiators with this policy (should be False if specific users or user groups are used)</p>
account_idsarrayaccount IDs that transactions can be sent from
currenciesarraylist of specific assets that are relevant for this policy (should be empty if all_assets parameter is True)
all_assetsboolean<p>All relevant assets are associated with this policy (should be False if specific assets are selected in currencies parameter)</p>
policy_typestring<p>the policy type (0 for transfer, 1 for smart contract, 4 for raw signing)</p>
session_idstringthe session id of the contract in string
administrative_message_numberintegerthe administrative message number
allow_smart_contract_transactionboolean<p>whether or not smart contract transactions are allowed (only relevant for Policy Type 0)</p>
all_addressesboolean<p>can transfer to all addresses (should be False if specific contacts or address groups are selected - only relevant for Policy Type 0)</p>
contact_idsarraythe destination Contact IDs (only relevant for Policy Type 0)
address_group_idsarraythe destination Address Group IDs (only relevant for Policy Type 0)
personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflowsobjectA dictionary of flags to customize transaction policy and workflow settings. It allows you to enable or disable features like personal signing, EIP-712 signing, contract deployment, raw signing, and set transaction policy ranges and roles.
frequencyinteger<p>the frequency at which the limits of the policy are reset (0 for daily, 1 for weekly - only relevant for Policy Type 0)</p>
maximuminteger<p>the maximum amount to be sent for this policy range, if None then it is assumed the range maximum is infinity</p>
bodyobject
200success
curl --request POST \
--url 'http://1.1.1.1/editTransactionPolicyForSwagger?id=123&name=newPolicy&user_ids=array&user_group_ids=array&all_users=True&account_ids=array¤cies=array&all_assets=True&policy_type=TRANSFER&session_id=3478593863424051983840947&administrative_message_number=5&allow_smart_contract_transaction=True&all_addresses=True&personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflows=%22{%5Cn%20%20%5C%22please_insert_your_object_data_inside_the_requestBody%5C%22%3A%20%5C%22your_object_here%5C%22%5Cn}%20%20%20%20%20%20%5Cn%22&frequency=integer&maximum=100' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflows": "type_object_here"
}'- Allows creating a transaction policy for MPC driven system
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.