Users > Users > usersModify
Commerce APIUsersUsersusersModify

usersModify

POST:users.json

Description

Allows you to modify yourself. If you your own id as the only id for ids argument, you can modify yourself.

Permission bit: "users.modify"

Topic: Users

Arguments

data: [UserModify!]!

Main argument for mutations.


ids: [String!]!

List of user ids. See also: Unique Identifiers

Example: ["us_EQzGqWoY"]

Data Argument Fields

bio_raw_content: String

Raw content with user's bio

Example: "{}"

Valid when: bio_raw_content's length doesn't exceed 100000 characters


default_shop_id: String

Default shop identifier

Example: "sh_EQzGqWoY"

Valid when: default_shop_id matches regexp pattern: ^sh_


display_name: String

Display name of the user (customers will see it)

Example: "Jane S."

Valid when: display_name's length doesn't exceed 250 characters


emails: [UserEmailCreate!]


language: String

Preferred language of the user


name: String

Name of the user

Example: "Jane Smith"

Valid when: name's length doesn't exceed 250 characters


prefer_twenty_four_hour: AutoBoolean

Whether to use 24h time format


profile_image: ProfileImage

Which profile image should be used


profile_image_color: Int

Preferred color for auto profile image

Example: 5


timezone: String

Name of the time zone the user is in

Example: "(GMT-05:00) Eastern Time"

Valid when: timezone's length doesn't exceed 50 characters


tos_agree: Boolean

It has to be set to true and signifies that you agree with updated Lana TOS

Example: true

Result

[User!]

Preview

Loading module