Skip to content

businessUnitAssociateInvite

Mutationin Business units

Invite a new associate to the business unit with specified roles

Arguments

ArgumentTypeDescription
businessUnitIdID!
emailString!
roleIds[ID!]!

Returns

BusinessUnitAssociateInviteResponse!

FieldTypeDescription
businessUnitBusinessUnitUpdated business unit information with new associate
businessUnitErrors[BusinessUnitAssociateInviteError!]Error details if associate invitation failed

Example

mutation {
businessUnitAssociateInvite(
businessUnitId: "bu-123"
email: "new.associate@company.com"
roleIds: ["role-admin", "role-buyer"]
) {
businessUnit {
id
associates {
items {
id
email
roles {
id
name
}
}
}
}
businessUnitErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: