remagicaDocs home
API referenceTemplates

Keep a preset's example results

POST
/presets/{slug}/results

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.

Authorization

apiKey
headerx-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.

Path Parameters

slug*string
Length1 <= length <= 80

Request Body

application/json
  1. body
nodeIds*

Each fragment node id and the id it was inserted as (what insertPreset returns).

workflowId*string
Length1 <= length <= 128

Response Body

How many results were recorded.

application/json
  1. response
results*integer

Example results recorded on the project's nodes.

Example Request
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}