Clips
Update a text overlay
Changed onUpdate a text overlay's copy, font, color, timing, position, or dimensions. Only the fields you send are changed.
patch/v1/videos/{id}/clips/{clipId}/text-overlays/{textOverlayId}
Request
- Base URLhttps://api.tella.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Video ID
clipIdstring required
Clip ID
textOverlayIdstring required
Text overlay ID
Request body
Example request
{
"animation": {
"intro": {
"preset": "slide_up"
},
"outro": {
"preset": "fade"
}
},
"background": {
"color": "#5E51F8FF",
"type": "solid"
},
"backgroundPadding": 0.25,
"backgroundShape": "squircle",
"color": "#FFFFFFFF",
"depth": "behind_presenter",
"depthChanges": [
{
"atMs": 1200,
"depth": "behind_presenter"
}
],
"dimensions": {
"height": 540,
"width": 960
},
"fontFamily": "Inter",
"fontId": "media_abc123def456",
"letterSpacing": -0.02,
"outline": "#000000FF",
"point": {
"xPct": 30,
"yPct": 30
},
"presetId": "default:label",
"shadow": "subtle",
"textAlign": "center",
"transition": "smooth"
}Response
OK
Example response
{
"textOverlay": {
"animation": {
"intro": {
"durationMs": 500,
"easing": {
"bezier": [
0.25,
0.1,
0.25,
1
],
"curve": "slow_down",
"intensity": 0.5,
"spring": {
"damping": 12,
"mass": 1,
"stiffness": 200
}
},
"moveY": -0.5,
"preset": "slide_up",
"scale": 1,
"text": {
"delayMs": 100,
"order": "forward",
"smoothing": "linear",
"unit": "words"
}
},
"motionBlur": true,
"outro": {
"durationMs": 500,
"easing": {
"bezier": [
0.25,
0.1,
0.25,
1
],
"curve": "slow_down",
"intensity": 0.5,
"spring": {
"damping": 12,
"mass": 1,
"stiffness": 200
}
},
"moveY": -0.5,
"preset": "slide_up",
"scale": 1,
"text": {
"delayMs": 100,
"order": "forward",
"smoothing": "linear",
"unit": "words"
}
},
"textIntro": {
"durationMs": 500,
"easing": {
"bezier": [
0.25,
0.1,
0.25,
1
],
"curve": "slow_down",
"intensity": 0.5,
"spring": {
"damping": 12,
"mass": 1,
"stiffness": 200
}
},
"moveY": -0.5,
"preset": "slide_up",
"scale": 1,
"text": {
"delayMs": 100,
"order": "forward",
"smoothing": "linear",
"unit": "words"
}
},
"textOutro": {
"durationMs": 500,
"easing": {
"bezier": [
0.25,
0.1,
0.25,
1
],
"curve": "slow_down",
"intensity": 0.5,
"spring": {
"damping": 12,
"mass": 1,
"stiffness": 200
}
},
"moveY": -0.5,
"preset": "slide_up",
"scale": 1,
"text": {
"delayMs": 100,
"order": "forward",
"smoothing": "linear",
"unit": "words"
}
}
},
"background": {
"color": "#5E51F8FF",
"type": "solid"
},
"backgroundPadding": 0.25,
"backgroundShape": "squircle",
"color": "#FFFFFFFF",
"depth": "behind_presenter",
"depthChanges": [
{
"atMs": 1200,
"depth": "behind_presenter"
}
],
"dimensions": {
"height": 540,
"width": 960
},
"durationMs": 5000,
"fontFamily": "Inter",
"fontId": "media_abc123def456",
"fontSize": 81,
"fontWeight": 500,
"fontWidth": 100,
"id": "ly_abc123",
"letterSpacing": -0.02,
"outline": "#000000FF",
"point": {
"xPct": 30,
"yPct": 30
},
"shadow": "subtle",
"startTimeMs": 1000,
"text": "Welcome back",
"textAlign": "center",
"transition": "smooth"
}
}Changes
- info
added the new optional request property
- info
added the required property
/to the response with the status
- info
- info
added the new optional request property
- info
added the required property
/to the response with the status
- info