API referenceTemplates
Keep a preset's example results
POST
Needs a key withtemplates:use
Records a preset's example results on the nodes it was inserted as (after insertPreset and a save), so they stay on the canvas: the files are copied into your workspace and kept as one finished run.
Requires scope templates:use.
apiKeyheader
x-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
slug*stringLength
1 <= length <= 80application/json- body
nodeIds*Each fragment node id and the id it was inserted as (what insertPreset returns).
workflowId*stringLength
1 <= length <= 128How many results were recorded.
application/json- response
results*integerExample results recorded on the project's nodes.
curl -X POST 'https://api.remagica.com/api/v1/presets/string/results' \ -H 'Content-Type: application/json' \ -d '{ "nodeIds": {}, "workflowId": "cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05"}'Example Response
{ "results": 1}