CodeNode

Points an existing image slot (name, the relative path the html references, so it may contain slashes) at a tenant media library asset instead of an uploaded file. The reference is recorded on the node for the library's usage check. The editor swaps the url in the html itself afterwards.

put/api/simulations/{simulationId}/nodes/{nodeId}/code/images/{name}

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

namestring required

Request body

mediaReferenceIdstring uuid required

A valid GUID

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.