Yapper Docs
Api reference
DELETE
/sessions/{sessionId}/canvas/edges

Removes the wires from the source card into the target card, on every port or only targetPort. not_found when there is no such wire. Shows up live on the canvas in the Yapper web app. Free. Uses the processes:write scope.

Authorization

bearerAuth processes:write
AuthorizationBearer <token>

In: header

Scope: processes:write

Path Parameters

sessionId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/sessions/string/canvas/edges" \  -H "Content-Type: application/json" \  -d '{    "sourceNodeId": "string",    "targetNodeId": "string"  }'
{  "removedEdgeIds": [    "string"  ],  "target": {    "id": "string",    "kind": "text",    "label": "string",    "position": {      "x": 0,      "y": 0    },    "width": 0,    "height": 0,    "locked": true,    "ports": {      "inputs": [        {          "id": "prompt",          "type": "text",          "maxConnections": 0,          "connected": 0        }      ],      "output": "text"    },    "inputs": [      {        "port": "string",        "sourceNodeId": "string",        "order": 0      }    ],    "text": "string",    "asset": {      "assetId": "string",      "type": "image",      "url": "string",      "thumbnailUrl": "string",      "width": 0,      "height": 0,      "duration": 0,      "name": "string"    },    "pending": true,    "prompt": "string",    "modelId": "string",    "aspectRatio": "string",    "resolution": "string",    "numOutputs": 0,    "duration": 0,    "durationMode": "string",    "generateAudio": true,    "customSettings": {},    "promptGuide": "string",    "runCount": 0,    "runs": [      {        "id": "string",        "index": 0,        "status": "waiting",        "processId": "string",        "canvasRunId": "string",        "modelId": "string",        "startedAt": "2019-08-24T14:15:22Z",        "creditsEstimated": 0,        "outputs": [          {            "assetId": "string",            "type": "image",            "url": "string",            "thumbnailUrl": "string",            "width": 0,            "height": 0,            "duration": 0,            "name": "string"          }        ],        "text": "string",        "error": "string"      }    ],    "selectedOutput": {      "runId": "string",      "outputIndex": 0    },    "output": null,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}

Delete a webhook endpoint DELETE

Previous Page

Edit a session's timeline POST

Applies operations in order and saves them together; when any fails, nothing is saved and the error names it. Makes the timeline when the session has none. A timeline open in the web app picks the edit up live, and a concurrent edit returns conflict. Free. Uses the processes:write scope. Operations, as { type, ...fields } (? = optional): - addVideoClip: assetId, startTime?, track?, trimStart?, trimEnd?, ref? - addImageClip: assetId, duration?, startTime?, track?, ref? - addAudioClip: assetId, startTime?, track?, trimStart?, trimEnd?, volumePercent?, volumeDecibels?, ref? - moveClip: clipId, startTime?, track? - trimClip: clipId, trimStart, trimEnd - setClipVolume: clipId, volumePercent?, volumeDecibels? - transformClip: clipId, x?, y?, scale?, rotation?, reset? - removeClip: clipId - setTransition: leftClipId, rightClipId, transition?, durationSeconds?, easing? - removeTransition: leftClipId, rightClipId - setClipLook: clipId, opacityPercent?, blendMode?, filter?, filterIntensityPercent?, adjustments? - setClipKeyframes: clipId, property, keyframes - addText: text, startTime, duration?, fontFamily?, fontSize?, color?, textAlign?, fontWeight?, letterSpacing?, lineHeight?, backgroundEnabled?, backgroundColor?, backgroundCornerRadius?, strokeEnabled?, strokeColor?, strokeWidth?, positionX?, positionY?, ref? - updateText: textClipId, text?, startTime?, duration?, fontFamily?, fontSize?, color?, textAlign?, fontWeight?, letterSpacing?, lineHeight?, backgroundEnabled?, backgroundColor?, backgroundCornerRadius?, strokeEnabled?, strokeColor?, strokeWidth?, positionX?, positionY? - removeText: textClipId - removeAllCaptions - styleCaptions: fontFamily?, fontSize?, color?, textAlign?, fontWeight?, letterSpacing?, lineHeight?, backgroundEnabled?, backgroundColor?, backgroundCornerRadius?, strokeEnabled?, strokeColor?, strokeWidth?, positionX?, positionY? Times are seconds on the timeline; trimStart/trimEnd are seconds into the source media. Tracks run 1-8 and track 1 is the top layer, drawn over the tracks below (overlays, picture-in-picture). New clips default to track 1 (audio: track 2), placed at the end of that track. assetId is a team asset from yapper_list_assets of the matching type (images last 5s unless duration is set). ref names a new clip so later operations in the same call can use it as clipId, textClipId, leftClipId or rightClipId. transformClip: x and y move the clip center by fractions of the frame, scale 1 fills the frame, rotation in degrees. setTransition: the two clips must touch on one track; transition is dissolve, dip-to-black, dip-to-white, slide-left, slide-right, wipe-left, wipe-right, zoom-in or blur-dissolve. setClipKeyframes: property x, y, scale, rotation, opacity or volume; keyframes [{ time (seconds from the clip's start), value, easing? }], and [] removes the animation. Text: fontSize is relative (captions about 5, titles 8-14), positionX/positionY run -0.5 to 0.5 from the frame center, and any Google Fonts family works. Unknown values fail with the allowed list.