Add a source to the library
Changed onSaves an uploaded source to the library so it can be listed and reused later, both here and in the editor's media panels. Create the source via POST /v1/sources and upload the bytes first, then pass its sourceId. Without this a source is only reachable through the clips that already reference it. To bring in an image you saved in a connected Pinterest, Are.na or mymind account instead, pass from with the service and sourceId set to the item's id from GET /v1/library?scope=<service>; Tella copies the image into your private library (default), the workspace library, or with scope: "video" the library of the video named by videoId. Only images can be brought in: Pinterest image pins, Are.na image blocks, and mymind images or the screenshot mymind took of a saved page.
Request
- Base URLhttps://api.tella.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"from": "pinterest",
"name": "Intro camera take",
"sourceId": "su_abc123def456",
"videoId": "vid_abc123def456"
}Response
Created
Example response
{
"item": {
"category": "Everyday",
"durationMs": 4200,
"id": "media_abc123def456",
"name": "Intro camera take",
"presetId": "cha-ching",
"scope": "private",
"sourceId": "su_abc123def456",
"type": "video"
}
}Changes
- warning
added the new
vintageenum value to the/response property for the response status - info
added the new
vintageenum value to the request property
- warning
- breaking
request property
was restricted to a list of enum values - breaking
the
request property type changed from no type tostring - warning
removed from the
request propertyallOflist - warning
added the new
arenaenum value to the/response property for the response status - warning
added the new
mymindenum value to the/response property for the response status - warning
added the new
pinterestenum value to the/response property for the response status - warning
added the new
videoenum value to the/response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new
privateenum value to the request property - info
added the new
videoenum value to the request property - info
added the new
workspaceenum value to the request property - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking