Mutations
Root mutation fields reachable with a workspace API key.
Marks a member event as confirmed. May fail with MEMBER_RESTRICTED when your member status is restricted. Fails with TARGET_MEMBER_RESTRICTED when the member the event belongs to is restricted, or TARGET_MEMBER_DEACTIVATED when it is deactivated, whoever the caller is.
- idID!
Member event id to confirm.
Creates an event category in the current workspace.
- dataCreateEventCategoryInput!
Category name, scope, time type, and default availability.
Creates an event type in the current workspace.
- dataCreateEventTypeInput!
Event type name, category, defaults, and styling.
Creates a policy on an event type.
- dataCreateEventTypePolicyInput!
Event type, selector and constraints of the policy.
Creates a workspace-level group event matched to members by location.
- dataCreateGroupEventInput!
Group event title, location, event type, dates, and availability.
Creates a member in the current workspace.
- dataCreateMemberInput!
Member profile, location, availability, and optional role.
Creates a member event. May fail with MEMBER_RESTRICTED when your member status is restricted. Fails with TARGET_MEMBER_RESTRICTED when the member the event belongs to is restricted, or TARGET_MEMBER_DEACTIVATED when it is deactivated, whoever the caller is. Fails with NotFound when memberId does not exist. Fails with POLICY_VIOLATION when the booking breaks an event type policy whose level is Block on your workspace’s plan (Standard and up); errorInfo.violations lists the broken policies in the shape of memberEventPolicyCheck. The check is a guard rail, not atomic: two bookings saved at the same time can both pass a minimum gap rule. The violations found, Warn included, are saved on the event (see MemberEvent.policyViolations).
- dataCreateMemberEventInput!
Member, event type, dates, availability, and optional recurrence.
- overridePoliciesBoolean
Set to true to save a booking that a Block policy would reject. Only a workspace admin, or a member with team admin access to a team of the event’s member, may override; anyone else gets Unauthorized when the booking is blocked. Ignored when nothing is blocked.
- policyOverrideReasonString
Optional reason for overriding a Block policy, at most 500 characters (ValidationError above that). Saved on the event as policyOverrideReason when an override is applied. Ignored when nothing is blocked.
Creates a team in the current workspace.
- dataCreateTeamInput!
Team name, owner, and optional icon or baseline time type.
Adds a member to a team.
- dataCreateTeamMemberInput!
Team id and member id to link.
Creates a team notification rule.
- dataCreateTeamNotificationRuleInput!
Rule name, type, channels, and type-specific configuration.
Deletes an event category by id.
- idID!
Event category id to delete.
Deletes an event type policy by id.
- idID!
Policy id to delete.
Deletes a member event. May fail with MEMBER_RESTRICTED when your member status is restricted. Fails with TARGET_MEMBER_RESTRICTED when the member the event belongs to is restricted, or TARGET_MEMBER_DEACTIVATED when it is deactivated, whoever the caller is.
For recurring series, flag controls scope: all deletes the entire series (pass the series id), this removes one occurrence (pass the virtual occurrence id), fromThis truncates the series from that occurrence onward (pass the virtual occurrence id).
- idID!
Member event id, series id, or virtual occurrence id depending on
flag. - flagRecurrenceChangeFlag
Recurrence change scope when deleting a recurring event.
Removes a member from a team.
- idID!
Team member link id to delete.
Deletes a team notification rule by id.
- idID!
Team notification rule id to delete.
Resends the invitation email for a member who has an email address and has not signed in to this workspace yet.
- idID!
Member id to resend the invitation for.
Sets a team member’s role on a team.
- idID!
Team member link id to update.
- roleTeamMemberRole!
New team role for the member.
Clears confirmation on a member event. May fail with MEMBER_RESTRICTED when your member status is restricted. Fails with TARGET_MEMBER_RESTRICTED when the member the event belongs to is restricted, or TARGET_MEMBER_DEACTIVATED when it is deactivated, whoever the caller is.
- idID!
Member event id to unconfirm.
Updates an event category by id.
- idID!
Event category id to update.
- dataUpdateEventCategoryInput!
Fields to update on the event category.
Updates an event type by id.
- idID!
Event type id to update.
- dataUpdateEventTypeInput!
Fields to update on the event type.
Updates an event type policy by id. The event type of a policy cannot be changed.
- idID!
Policy id to update.
- dataUpdateEventTypePolicyInput!
Fields to update on the policy. An omitted field is unchanged. A null clears the field, except enabled. The result must still have at least one rule.
Updates a group event by id.
- idID!
Group event id to update.
- dataUpdateGroupEventInput!
Fields to update on the group event.
Updates a member by id.
- idID!
Member id to update.
- dataUpdateMemberInput!
Fields to update on the member.
Updates a member event. May fail with MEMBER_RESTRICTED when your member status is restricted. Fails with TARGET_MEMBER_RESTRICTED when the member the event belongs to is restricted, or TARGET_MEMBER_DEACTIVATED when it is deactivated, whoever the caller is. Fails with POLICY_VIOLATION when the edit breaks an event type policy whose level is Block on your workspace’s plan (Standard and up); errorInfo.violations lists the broken policies in the shape of memberEventPolicyCheck. Only edits that change the dates or the recurrence are checked, and only those replace the saved violations. The check is a guard rail, not atomic: two bookings saved at the same time can both pass a minimum gap rule.
For recurring series, flag controls scope: all updates the series (pass the series id), this updates one occurrence (pass the virtual occurrence id), fromThis splits the series from that occurrence onward (pass the virtual occurrence id).
- idID!
Member event id, series id, or virtual occurrence id depending on
flag. - dataUpdateMemberEventInput!
Fields to update on the member event.
- flagRecurrenceChangeFlag
Recurrence change scope when updating a recurring event.
- overridePoliciesBoolean
Set to true to save a booking that a Block policy would reject. Only a workspace admin, or a member with team admin access to a team of the event’s member, may override; anyone else gets Unauthorized when the booking is blocked. Ignored when nothing is blocked.
- policyOverrideReasonString
Optional reason for overriding a Block policy, at most 500 characters (ValidationError above that). Saved on the event as policyOverrideReason when an override is applied. Ignored when nothing is blocked.
Updates a team by id.
- idID!
Team id to update.
- dataUpdateTeamInput!
Fields to update on the team.
Updates a team notification rule by id.
- idID!
Team notification rule id to update.
- dataUpdateTeamNotificationRuleInput!
Fields to update on the rule.
Updates the current workspace.
- dataUpdateWorkspaceInput!
Fields to update on the workspace.