AlmondTill/G3N API

NewSchedulableResourceInput

input type

Create-input for a SchedulableResource. The tenant (org group) is derived SERVER-SIDE from the principal; logicalFacilityId (the parent — rides the header) is tenant-scoped server-side and must be ACTIVE (any LF classification — does not restrict booking sites). userId is legal on staff resources ONLY (in-tenant + ACTIVE — CONFLICT/REF_STATE else); capacity defaults to 1; workingHours defaults to.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the kind + LF coordinate ('staff at <LF caption>'); when supplied it must be non-blank.
logicalFacilityIdID ID!yesThe parent LogicalFacility (the booking site) — tenant-scoped + ACTIVE. Immutable after birth.
resourceTypeSchedulableResourceType SchedulableResourceType!yesThe canned kind — IMMUTABLE at birth.
userIdIDnoThe optional staff link — staff-kind only (refused otherwise); in-tenant + ACTIVE.
capacityIntnoConcurrent-booking capacity (1..100); omitted = 1.
workingHoursWorkingHoursWindowInput [WorkingHoursWindowInput!]noThe weekly advisory calendar; omitted =.
codeStringnoNo further notes.

Used by