Magidoc

CreateResourceAssignmentInput
Input Object

Fields

#

_id

allocationType

The allocation type (required).

Could be ONLY 'hoursPerDay' or 'fixedHours'. Works in pair with 'fixedDisplayType'. You should ALWAYS PASS 'fixedDisplayType' when you pass 'allocationType'.

allocationValue

The allocation value. This is mostly just user defined value.

assignmentType

The assignment type

confirmed

Whether the assignment is confirmed

endDate

Non-null

Create a resource assignment with SPECIFIC end date logic:

ALWAYS set endDate to the NEXT DAY after the actual assignment end This is NOT the actual last day - it's the day AFTER

Examples: • 1-day assignment (Jan 1) → endDate = 2025-01-02T00:00:00.000Z • 2-day assignment (Jan 1-2) → endDate = 2025-01-03T00:00:00.000Z • Assignment from Jan 1-5 → endDate = 2025-01-06T00:00:00.000Z

Database requirement - do not use actual end date.

fixedDisplayType

The fixed display type (required). How the allocation value is displayed for user.

Could be ONLY 'hours' or 'days' or 'percentages'. Works in pair with 'allocationType'. You should ALWAYS PASS 'allocationType' when you pass 'fixedDisplayType'.

fixedHours

The fixed hours

hoursPerDay

The hours per day

leaveTypeId

The leave type id

notes

The notes

projectId

The project id

resourceId

ID !
Non-null

The resource (user or placeholder) id

startDate

Non-null

The start date of the resource assignment

timeCategoryId

Associate time category id

workspace

ID !
Non-null

The workspace id

Usages

#

References

#

  • Argument resourceAssignment of field createResourceAssignment from type Mutation