Skip to main content

account.reorderUsernames

Reorder usernames associated with the currently logged-in user.

func (c *Client) AccountReorderUsernames(ctx context.Context, order []string) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountReorderUsernames(ctx, order)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
Order[]stringyesThe new order for active usernames. All active usernames must be specified.

Returns

bool

Possible errors

CodeTypeDescription
400ORDER_INVALIDThe specified username order is invalid.
400USERNAME_NOT_MODIFIEDThe username was not modified.

References