CrewSheetSubmitItem
One sheet to submit. Identify the sheet in one of two ways:
-
By
id_sheet, for a sheet that already exists. This is theid_sheetfrom atime,expense, orcustomblock in the crew sheets collection. -
By
id_userandsheet_datetogether, for a period the user has no sheet for yet. The sheet is created and then submitted in one step. This fails if the user is not active for the period.
sheettype is always required, because it selects which of the three sheet
tables to look in.
The ID of an existing sheet to submit. When given, id_user and
sheet_date are ignored.
6C5469825DAE4ABF9654B7A567141CD8The user whose sheet should be created and submitted. Required when
id_sheet is not given.
bobAny date inside the period to submit, in YYYYMMDD form. Required when
id_sheet is not given.
Possible values: Value must match regular expression ^\d{8}$
20250309Which entry type's sheet to submit. Always required.
Possible values: [time, expense, custom]
timeOptional. Used only to label this sheet in any error message the
response returns, which helps when submitting many sheets at once. You
can pass the user_name straight back from the sheet block.
Bob DevOptional, and used the same way as user_name: it only labels error
messages. You can pass the sheettype_label straight back from the
sheet block.
Expense{
"id_sheet": "6C5469825DAE4ABF9654B7A567141CD8",
"id_user": "bob",
"sheet_date": "20250309",
"sheettype": "time",
"user_name": "Bob Dev",
"sheettype_label": "Expense"
}