/editAccount
1 min
POST
/editAccount
account_idintegerID of the account to edit.
account_infoobject<p>AccountInfo:</p>
<ul>
<li>name: The name of the account to edit.</li>
<li>transaction_notification_user_ids: The email addresses of users that will receive transaction notifications for the account.</li>
<li>required_account_change_approvers: How many of the available approvers are required to approve account changes.</li>
<li>available_account_change_approver_user_ids: The email addresses of all users that are allowed to approve account changes.</li>
</ul>
request_extra_dataobject<p>Unique identifier of the session, and sequential message of when in the session, when the call is made. If this is a new session the ID must be generated. For an ongoing session, fetch the session ID from the /getAdministrativeSessionInfo endpoint.</p>
acceptstringGenerated from available response content types
bodyobject
200success
curl --request POST \
--url '/editAccount?account_id=1001&account_info=%22{%5Cn%20%20%5C%22name%5C%22%3A%20%5C%22Edited%20Account%5C%22%2C%20%20%5Cn%20%20%5C%22transaction_notification_user_ids%5C%22%3A%20[%5C%22ido%40gk8.io%5C%22]%2C%20%5Cn%20%20%5C%22required_account_change_approvers%5C%22%3A%201%2C%20%20%5Cn%20%20%5C%22available_account_change_approver_user_ids%5C%22%3A%20[%5C%22ido%40gk8.io%5C%22]%20%20%5Cn}%5Cn%22&request_extra_data=%22{%5Cn%20%20%5C%22MessageNumber%5C%22%3A%202%2C%5Cn%20%20%5C%22SessionId%5C%22%3A%20%5C%229f2bf96c-a1a8-4152-b50b-22009a57ef1b%5C%22%5Cn}%5Cn%22' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"FunctionData": {
"AccountId": 1001,
"AvailableAccountChangeApproverUserIds": [
"[email protected]"
],
"Name": "Edited Account",
"RequestExtraData": {
"MessageNumber": 2,
"SessionId": "9f2bf96c-a1a8-4152-b50b-22009a57ef1b"
},
"RequiredAccountChangeApprovers": 1,
"TransactionNotificationUserIds": [
"[email protected]"
]
},
"Meta": {
"FunctionName": "editAccount",
"RandomData": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229",
"Destination": "b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea",
"Time": "2021-02-07T18:37:46.948Z",
"Source": "048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99",
"AccessToken": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087"
}
}'