Summary

The clearCapacityGroupForOrganizations() mutation clears the pool capacity for multiple organizations in a specified capacity group, removing them from the group. Organizations not listed in the input are left unchanged, as are other capacity groups. If any part of the input is invalid โ€” for example, a non-existent organization ID โ€” no changes are made.

This mutation is available on a preview basis. It replaces the deprecated clearCapacitiesForProductType() mutation, which used a productType argument. The equivalent argument is now named capacityGroup.

Syntax

graphql
clearCapacityGroupForOrganizations(
      capacityGroup: String!,
      organizationIds: [String!]!
   ): Int!

Provide capacityGroup (required) โ€” a string identifying the capacity group, for example falconComplete or main. Provide organizationIds (required) โ€” a non-empty list of organization ID strings whose capacities to clear. If any ID is invalid, nothing is changed.

Returns a non-nullable Int! โ€” the count of organizations whose capacity was cleared.

Input parameters

Both capacityGroup and organizationIds are required. If any organization ID in the list does not exist, the entire mutation is rejected and no capacities are cleared.

Table: Input parameters and datatypes

Parameter Type Required Default Description
This table contains all input parameters for this mutation.
capacityGroup String! yes ย  The capacity group whose capacities to clear, for example falconComplete or main. Only this capacity group is affected; other capacity groups are left unchanged.
organizationIds [String!]! yes ย  The IDs of the organizations whose pool capacity to clear for the specified capacity group. If any ID does not exist, no changes are made.

Returned values

Returns a non-nullable Int! โ€” the number of organizations whose capacity was cleared. Returns 0 if no changes were made, including when the mutation is rejected because of invalid input.