Create Training
Put any number of trainees on a trainer's blocks for a dated window, new hire or retraining -- CHANGES.md §2. Gated on people:write, the same grant /supervisor-training above already uses: both change what a published schedule is allowed to hold.
⛔RETRAINING DOES NOT PULL THE TRAINEE OFF THEIR OWN BLOCKS YET. CHANGES.md §2, verbatim: "Retraining does not yet pull the person off their usual blocks on the grid. Frederick to decide; build as the design shows." This route only ever writes workforce_trainings/ workforce_training_trainees (see training.py's own header) -- it never touches floor_blocks/roster_shifts, so nobody is removed from a shift they already hold by calling it.
Request
- Base URLhttps://api.pigeonly.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Request body
POST /api/workforce/training's own wire shape, CHANGES.md §2, verbatim: { team, trainees: [id], trainer: id, kind: 'new_hire' | 'retraining', from: date, to: date }. from is a Python keyword, so the field is from_ with the wire name restored via the alias.
Response
Successful Response
Changes
No recorded changes to this operation across all 251 revisions of this API.