OrganizationMutations
No description
type OrganizationMutations {
switchOrganization(
organizationId: Long!
): AuthTokens
createOrganization(
name: String!
): Organization
transferOwnership(
targetWebUserId: Long!
): Boolean
renameOrganization(
name: String!
): Boolean
}
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
Returned By
organizations mutation