Sciencedisplay

Copy a Science week into one or more other weeks

Changed on

Requires permission: ScienceDisplayManagers

Copies all seven days of one subject's Science Display content from the source week into each target week, day for day (the source Monday lands on the target Monday). Weeks run Monday to Sunday. Done server-side because the client alternative is 7 days x N weeks of round trips.

post/ScienceDisplay/CopyWeek

Request

  • Base URL
    https://api.tonbridge.school
  • URL
    https://api.tonbridge.school/ScienceDisplay/CopyWeek
  • Auth
    HTTP bearer

Request body

sourceWeekstring date-time
targetWeeksstring[]
subjectstring nullable
overwriteboolean

Example request

{
  "sourceWeek": "0001-01-01T00:00:00",
  "targetWeeks": [],
  "overwrite": false
}

Response

Success - copy summary

weeksCopiedstring[]
roomsCopiedinteger
roomsSkippedinteger
textsCopiedinteger

Changes