Skip to content

Change a video template

PATCH
/api/v1/outreach/videos/templates/{id}
curl --request PATCH \
--url https://digize.com/api/v1/outreach/videos/templates/example \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "name": "example", "layout": "small_bubble", "bubble": { "position": "bottom_left", "shape": "circle" }, "background": { "sources": [ "linkedin" ], "urlPattern": "example", "imageId": "example", "scroll": "off" }, "page": { "title": "example", "description": "example", "buttonText": "example", "buttonUrl": "example", "calendarId": "example", "logoImageId": "example", "accent": "example", "theme": "light" }, "card": { "headline": "example", "style": "background" }, "captionsOn": true }'

Changes a video template’s name, layout, bubble, background sources, page or preview card. Pages already made show the page’s changes within a couple of minutes; their preview cards and backgrounds stay as they were made.

Needs the outreach:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters
layout

A small or big bubble over the background, or the video large in the middle.

string
Allowed values: small_bubble big_bubble full_screen
bubble
object
position
required
string
Allowed values: bottom_left bottom_right top_left top_right
shape
required
string
Allowed values: circle rounded
background
object
sources
required

Where each page’s background comes from, tried in order: the contact’s company website, a card made from their LinkedIn profile, an address with merge tags, the fixed picture. linkedin (their LinkedIn profile itself) is turned on with outreach.videos.linkedin.enable.

Array<string>
<= 5 items
Allowed values: linkedin website profile_card url image
urlPattern
required

For url: an address with merge tags, such as https://{{company_domain}}/about.

string
<= 2000 characters
imageId
required
Any of:
string
<= 200 characters
scroll
required
string
Allowed values: off slow medium fast
page
object
title
required

The page’s title, with merge tags such as {{first_name}} and {{company|your team}} (what follows | is said when the contact has none).

string
<= 200 characters
description
required
string
<= 1000 characters
buttonText
required

The button under the text; empty for Settings’ default.

string
<= 60 characters
buttonUrl
required
string
<= 2000 characters
calendarId
required
Any of:
string
<= 64 characters
logoImageId
required
Any of:
string
<= 200 characters
accent
required
Any of:
string
/^#[0-9a-f]{6}$/
theme
required
Any of:
string
Allowed values: light dark
card
object
headline
required

The line on the preview card LinkedIn shows for the link, with merge tags.

string
<= 120 characters
style
required
string
Allowed values: background brand
captionsOn

Whether pages show the captions from the start.

boolean

Done

Media typeapplication/json
object
id
required
string
name
required
string
hasVideo
required
boolean
durationMs
required
number
width
required
number
height
required
number
videoBytes
required
number
version
required
number
videoUrl
required

The video, a signed link that works for an hour.

string | null
posterUrl
required
string | null
captions
required
Array<object>
object
start
required
number
end
required
number
text
required
string
captionsStatus
required
string
Allowed values: none pending ready failed
captionsError
required
string | null
captionsOn
required
boolean
layout
required
string
Allowed values: small_bubble big_bubble full_screen
bubble
required
object
position
required
string
Allowed values: bottom_left bottom_right top_left top_right
shape
required
string
Allowed values: circle rounded
background
required
object
sources
required

Where each page’s background comes from, tried in order: the contact’s company website, a card made from their LinkedIn profile, an address with merge tags, the fixed picture. linkedin (their LinkedIn profile itself) is turned on with outreach.videos.linkedin.enable.

Array<string>
<= 5 items
Allowed values: linkedin website profile_card url image
urlPattern
required

For url: an address with merge tags, such as https://{{company_domain}}/about.

string
<= 2000 characters
imageId
required
Any of:
string
<= 200 characters
scroll
required
string
Allowed values: off slow medium fast
linkedinAccountId
required

The LinkedIn account whose sign-in screenshots profiles; null when off.

string | null
page
required
object
title
required
string
description
required
string
buttonText
required
string
buttonUrl
required
string
calendarId
required
string | null
logoImageId
required
string | null
accent
required
string | null
theme
required
Any of:
string
Allowed values: light dark
card
required
object
headline
required
string
style
required
string
Allowed values: background brand
pages
required
number
createdBy
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"captionsStatus": "none",
"layout": "small_bubble",
"bubble": {
"position": "bottom_left",
"shape": "circle"
},
"background": {
"sources": [
"linkedin"
],
"scroll": "off"
},
"page": {
"theme": "light"
},
"card": {
"style": "background"
}
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}