Skip to content

businessUnitAssociateDeactivate

Mutationin Business units

Deactivate an associate so they can no longer act within the business unit. Their roles are preserved for reactivation. Cannot deactivate the last active administrator. Idempotent when already inactive.

Arguments

ArgumentTypeDescription
businessUnitIdID!
customerIdID!

Returns

BusinessUnitAssociateStatusUpdateResponse!

FieldTypeDescription
businessUnitBusinessUnitUpdated business unit information with the modified associate status
businessUnitErrors[BusinessUnitAssociateStatusUpdateError!]Error details if the associate status update failed

Example

mutation {
businessUnitAssociateDeactivate(
businessUnitId: "bu-123"
customerId: "customer-456"
) {
businessUnit {
id
associates {
items {
id
status
}
}
}
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/sfccNot resolved