OrganizationMutations
No description
type OrganizationMutations {
switchOrganization(
organizationId: Long!
): AuthTokens
createOrganization(
name: String!
): Organization
transferOwnership(
targetWebUserId: Long!
): Boolean
renameOrganization(
name: String!
): Boolean
setWebDefaults(
search: WebToolDefaultInput
fetch: WebToolDefaultInput
interact: WebToolDefaultInput
): OrganizationWebDefaults
}
Fields
OrganizationMutations.switchOrganization ● AuthTokens object
Switch to a different organization the user has access to
OrganizationMutations.switchOrganization.organizationId ● Long! non-null scalar
OrganizationMutations.createOrganization ● Organization object
Create a new organization and grant the current user Owner access to it (requires the canCreateOrganizations user property)
OrganizationMutations.createOrganization.name ● String! non-null scalar
OrganizationMutations.transferOwnership ● Boolean scalar
Transfer organization ownership to another member (Owner only). Atomically demotes the current Owner to Admin and promotes the target; the caller's token keeps its old role until the next refresh.
OrganizationMutations.transferOwnership.targetWebUserId ● Long! non-null scalar
OrganizationMutations.renameOrganization ● Boolean scalar
Rename the current organization. Requires Owner or Admin role.
OrganizationMutations.renameOrganization.name ● String! non-null scalar
OrganizationMutations.setWebDefaults ● OrganizationWebDefaults object
Set the organization's web defaults (all three entries; null = the Honeybase default). Requires Owner or Admin role. Each entry is checked: a provider the tool supports, and a connection of this organization, of the provider's type, enabled and with a key. Existing agents keep their saved tool settings.
OrganizationMutations.setWebDefaults.search ● WebToolDefaultInput input
OrganizationMutations.setWebDefaults.fetch ● WebToolDefaultInput input
OrganizationMutations.setWebDefaults.interact ● WebToolDefaultInput input
Returned By
organizations mutation