account.toggleUsername #

Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.toggleUsername#58d6b376 username:string active:Bool = Bool;

Parameters #

NameTypeDescription
usernamestringUsername
activeBoolWhether to activate or deactivate it

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400USERNAMES_ACTIVE_TOO_MUCHThe maximum number of active usernames was reached.
400USERNAME_INVALIDThe provided username is not valid.
400USERNAME_NOT_MODIFIEDThe username was not modified.