update Identities For Account
Updates the identity configuration for a registered account.
Replaces all existing identities with those provided in the request. This is not a merge operation -- identities not included in the request are removed.
Return
Sep30AccountResponse with updated identities and signing addresses
Parameters
The Stellar account address to update
The new identity configuration (replaces existing identities)
SEP-10 authentication token
Throws
If the request is malformed or contains invalid parameters (HTTP 400)
If the JWT token is missing, invalid, or expired (HTTP 401)
If the account is not registered (HTTP 404)
If there is a conflict with the current account state (HTTP 409)
If the server returns HTTP 200 with a malformed body
If the server returns an unexpected HTTP status code
Example:
val newAuth = Sep30AuthMethod(type = "phone_number", value = "+14155559876")
val updatedIdentity = Sep30RequestIdentity(role = "owner", authMethods = listOf(newAuth))
val request = Sep30Request(identities = listOf(updatedIdentity))
val response = sep30.updateIdentitiesForAccount("GABC...", request, jwtToken)