Skip to navigation

Attach a draft container tree to a program or specialisation

View as Markdown

Attaches a draft container tree to a program or specialisation, stamping the owner onto the root and every container beneath it.

Only a draft ROOT can be attached. A container with a parent already belongs to its parent’s curriculum, and an already-attached tree is rejected rather than moved, because relocating a live curriculum wholesale isn’t something to do by accident.

Supply exactly one owner: programCode+programYear or specialisationCode+specialisationYear.

Authentication

AuthorizationBearer

Paste a Keycloak access token (no "Bearer " prefix)

Path parameters

structureIdstringRequiredformat: "uuid"

Query parameters

programCodestringOptional
programYearintegerOptional
specialisationCodestringOptional
specialisationYearintegerOptional

Response

The draft and everything beneath it are now part of that curriculum.
structureIdstringOptionalformat: "uuid"
containersAttachedintegerOptional

How many containers were stamped with the new owner: the root plus everything beneath it.

Errors

400
Bad Request Error
404
Not Found Error