Source

Actions for components implementing ISourceUrl (a Uri SourceUrl file/URL source — StillImageInput, MediaFileInput, …). To set a source, use /api/setproperty with property=SourceUrl. To reload or clear it, use the endpoints below — /api/setproperty can express neither (it rejects an empty value, and re-assigning the same Uri is a no-op the setter skips).

GET /api/source/reload

Re-applies the current SourceUrl on the target (nulls it then restores it, forcing the setter's load path — the API equivalent of Composer Desktop's Reload-media button).

Parameters:

Parameter Required Description
target Yes Target NamedModel id (GUID)

Response: 200 OKReloaded source: <uri>. 400 if the target isn't an ISourceUrl or has no source set. 500 if the reload throws.

GET /api/source/clear

Clears the target's SourceUrl (sets it to null).

Parameters:

Parameter Required Description
target Yes Target NamedModel id (GUID)

Response: 200 OKSource cleared.. 400 if the target isn't an ISourceUrl. 500 if the setter throws.