staffCreate Mutation
Creates a new staff user. Apps are not allowed to perform this mutation.
Triggers the following webhook events:
- STAFF_CREATED (async): A new staff account was created.
- NOTIFY_USER (async): A notification for setting the password.
- STAFF_SET_PASSWORD_REQUESTED (async): Setting a new password for the staff account is requested.
Applied directives
@webhookEventsInfo(asyncEvents: [STAFF_CREATED, NOTIFY_USER, STAFF_SET_PASSWORD_REQUESTED], syncEvents: [])
staffCreate(input: StaffCreateInput!): StaffCreate
Returns
Show return type
type StaffCreate {
staffErrors: [StaffError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [StaffError!]!
user: User
}Arguments
input
input · StaffCreateInput!
Fields required to create a staff user.
Schema: Saleor 3.23.43. Download SDL.