CodeNode

Uploads (or replaces) the node's html file. Every upload writes a new versioned blob and the node is patched to point at it; the previous version is deleted afterwards.

post/api/simulations/{simulationId}/nodes/{nodeId}/code/html

Request

  • Base URL
    https://api.wearelearning.io (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Implicit: https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io

Path parameters

simulationIdstring uuid required

A valid GUID

nodeIdstring uuid required

A valid GUID

Request body

htmlstring required
fileNamestring nullable

Response

OK

nodeType'dialogue' | 'response' | 'poster' | 'event' | 'end' | 'open-response' | 'outcome' | 'no-match' | 'hotspot' | 'quiz' | 'page' | 'code' required
idstring required
simulationIdstring required
labelstring required
htmlUrlstring nullable
fileNamestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.