CodeNode

Uploads one image the html references by relative path (name, e.g. `images/hero.png`). The blob is content-addressed and tenant-wide; the node's image manifest gains or replaces the entry for that name. The editor rewrites the html's references to the returned url itself and then uploads the html through the route above — the server never parses it. Upload images one at a time: each call patches the node under its etag.

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

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

Query parameters

namestring

Request body multipart/form-data

filestring binary

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.