Skip to main content
Quick Summary: A learning suggestion is a proposed catalogue entry. Anyone who can see the training library may submit one; the submitter or a global administrator may revise it while it is pending; only a global administrator approves or rejects it. On approval the suggestion becomes a learning item with the same id. A rejected or pending suggestion is never a catalogue item.

Attributes

Operations

The list is filterable by title, status (the public values pending, approved, rejected), submittedBy (a person’s email), cost and createdAt, and sortable by title, createdAt and cost. A key acting as a manager lists only the suggestions of the manager’s reports, as in the app. Submit needs title; typeId, the other reference ids, note, skillIds and careerIds are optional. The result is pending. Revise takes the same fields as submit (without note) and applies to pending suggestions only; a decided suggestion is a 409 conflict. Approve with an empty body approves the submission as-is. Any field present in the body is applied first — the administrator’s modification — and modifiedOnApproval becomes true. On approval the suggested skills and careers are attached and the item appears in the catalogue under the same id. Reject requires { "reason": "…" }; the reason is recorded and the suggestion stays visible with status: rejected.

Permissions

Any person who can see the training library may read and submit suggestions. Revising a pending suggestion is allowed to the person who submitted it and to global administrators. Approving and rejecting are restricted to global administrators; any other acting person receives insufficient-permissions even when the key holds learning:write — this includes the submitter.
  • not-found — the suggestion is not in your company, or the id names a catalogue item that was never a suggestion
  • validation-error — a missing title or rejection reason, an unknown reference id, an unknown status filter value
  • conflict — a revision or decision on a suggestion that is no longer pending
  • insufficient-permissions — the acting person may not decide, or may not revise someone else’s submission