Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth.
POST
/xrpc/com.atproto.identity.updateHandle
const url = 'https://example.com/xrpc/com.atproto.identity.updateHandle';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"handle":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/com.atproto.identity.updateHandle \ --header 'Content-Type: application/json' \ --data '{ "handle": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
handle
required
The new handle.
string format: handle
Example generated
{ "handle": "example"}Responses
Section titled “Responses”Success
