/editTransactionPolicyForSwagger
1 min
POST
http://1.1.1.1/editTransactionPolicyForSwagger
Query Parameters
- idstringrequiredExampleDescriptionDefault123
- namestringrequiredExampleDescriptionDefaultnewPolicy
- user_idsstring[]requiredDescription
- user_group_idsstring[]requiredDescription
- all_usersbooleanrequiredExampleDescriptionDefaultTrue
- account_idsstring[]requiredDescription
- currenciesstring[]requiredDescription
- all_assetsbooleanrequiredExampleDescriptionDefaultTrue
- policy_typestringrequiredExampleDescriptionDefaultTRANSFER
- session_idstringrequiredExampleDescriptionDefault3478593863424051983840947
- administrative_message_numberintegerrequiredExampleDescriptionDefault5
- allow_smart_contract_transactionbooleanExampleDescriptionDefaultTrue
- all_addressesbooleanExampleDescriptionDefaultTrue
- contact_idsstring[]Description
- address_group_idsstring[]Description
- personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflowsobjectDescriptionDefault{ "please_insert_your_object_data_inside_the_requestBody": "your_object_here" }
- frequencyintegerDescriptionDefault0
- maximumintegerExampleDescriptionDefault100
Body Parameters
- bodyeditTransactionPolicyForSwaggerRequest
- personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflowsstringExampleDefaulttype_object_here
Responses
200
- editTransactionPolicyForSwaggerResponse
- FunctionDataobject
- StatusCodeintegerDescriptionDefault0
- MetaMetaResponse
- AccessTokenstringExampleDescriptionDefaulta3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6
- DestinationstringExampleDescriptionDefault042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622
- SourcestringExampleDescriptionDefaultdf4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355
- TimestringExampleDescriptionDefault2021-02-14 09:58:52.320
curl
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"
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflows": "type_object_here"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("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=\"{\\n \\\"please_insert_your_object_data_inside_the_requestBody\\\": \\\"your_object_here\\\"\\n} \\n\"&frequency=integer&maximum=100", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("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=\"{\n \\"please_insert_your_object_data_inside_the_requestBody\\": \\"your_object_here\\"\n} \n\"&frequency=integer&maximum=100")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflows": "type_object_here"
})
response = http.request(request)
puts response.read_body
python
import requests
import json
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=\"{\\n \\\"please_insert_your_object_data_inside_the_requestBody\\\": \\\"your_object_here\\\"\\n} \\n\"&frequency=integer&maximum=100"
payload = json.dumps({
"personal_sign_and_eip712_sign_and_contract_deployment_raw_signing_and_ranges_and_roles_to_workflows": "type_object_here"
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// success
{
"FunctionData": {
"StatusCode": 0
},
"Meta": {
"AccessToken": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6",
"Destination": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622",
"Source": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355",
"Time": "2021-02-14 09:58:52.320"
}
}- Allows creating a transaction policy for MPC driven system