question

mihigh avatar image
mihigh asked

UpdateUserTitleDisplayName - InvalidParams

Some of the users that try to input (using UpdateUserTitleDisplayName) get the error InvalidParams.

What is that suppose to mean?

Are there any invalid characters that are not allowed ?

The error seems different from "NameNotAvailable"

What should I do when I get such an error ?

Thank you!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

According to this API document Update User Title Display Name, the DisplayName should be between 3 and 25, otherwise it will return “InvalidParams” error.

The document also said that the DisplayName is a unique identifier of the title, if you try a duplicate name, it will return “NameNotAvailable”.

You may prompt the user about the error information and let them try another name.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.