v1
latestOpenAPI 3.0.22026-07-17191121.5 KBadmins
users
Edit an account's settings (e.g. tokens, URLs, settlement thresholds). This should not be confused with the administrator-only PUT /accounts/:username endpoint which allows changing any user parameter.
put/accounts/{username}/settings
Headers
authorizationstring required
Bearer token with the account's or administrator's authorization
Request body
Example request
{
"username": "Alice",
"asset_scale": 9,
"asset_code": "ABC",
"max_packet_amount": 10000000000,
"ilp_over_http_url": "https://example.com/accounts/our_username_on_peer/ilp",
"ilp_over_http_incoming_token": "peer_password",
"ilp_over_http_outgoing_token": "our_password_on_peer",
"ilp_over_btp_url": "btps://example.com/accounts/our_username_on_peer/ilp/btp",
"ilp_over_btp_incoming_token": "peer_password",
"ilp_over_btp_outgoing_token": "our_password_on_peer",
"settlement_engine_url": "http://engine.example.com",
"settle_threshold": 1000000000,
"settle_to": 1000000000,
"routing_relation": "Peer",
"round_trip_time": 500,
"amount_per_minute_limit": 1000000000,
"packets_per_minute_limit": 10
}Response
The updated account's information
Example response
{
"ilp_over_http_url": "https://example.com/accounts/our_username_on_peer/ilp",
"ilp_over_http_incoming_token": "peer_password",
"ilp_over_http_outgoing_token": "our_password_on_peer",
"ilp_over_btp_url": "btps://example.com/accounts/our_username_on_peer/ilp/btp",
"ilp_over_btp_incoming_token": "peer_password",
"ilp_over_btp_outgoing_token": "our_password_on_peer",
"settle_threshold": 1000000000,
"settle_to": 1000000000
}