Viz Multichannel
Version 4.2 | Published July 31, 2020 ©
PUT on Primary Event in Playlist (Version 2.0)
Update a Primary Event definition.
Syntax
PUT /api/channels/test/playlists/[playlist_id]/primaryevents/[primary_event_id]
Request
PUT /api/channels/test/playlists/continuous/primaryevents/1051111_1_VM_16_01_1 HTTP/
1.1
Content-Type: application/atom+xml; type=entry
<atom:entry xmlns:vaext=
"http://www.vizrt.com/atom-ext"
xmlns:vizid=
"http://www.vizrt.com/opensearch/vizid"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:inthub=
"http://www.vizrt.com/integrationshub"
xmlns=
"http://www.w3.org/2007/app"
xmlns:atom=
"http://www.w3.org/2005/Atom"
>
<inthub:name>1051111_1_VM_16_01_1</inthub:name>
<atom:id>1051111_1_VM_16_01_1</atom:id>
<atom:meta_data>
<atom:attribute name=
"continue_count"
>
0
</atom:attribute>
<atom:attribute name=
"created"
>
6
/
11
/
2018
17
:
33
:
51
</atom:attribute>
<atom:attribute name=
"date"
>
2010
-
09
-
23
</atom:attribute>
<atom:attribute name=
"fixed_duration"
>yes</atom:attribute>
<atom:attribute name=
"seqment"
>
1
</atom:attribute>
<atom:attribute name=
"time"
>
08
:
50
:
15
:
24
</atom:attribute>
</atom:meta_data>
<inthub:description>In-channel trailer - Updated Title</inthub:description>
<inthub:begin_at>
2018
-
11
-06T07:
13
:
40
.000Z</inthub:begin_at>
<inthub:duration>
00
:
00
:
35
:
00
</inthub:duration>
<inthub:ignore>False</inthub:ignore>
<inthub:event_id>1051111_1_VM_16_01_1</inthub:event_id>
<inthub:trigger_id>primary1001</inthub:trigger_id>
<inthub:instance>composite_test</inthub:instance>
<inthub:adjust_begin_at_after_resume>yes</inthub:adjust_begin_at_after_resume>
</atom:entry>
Response
HTTP/
1.1
200
OK
Content-Type: application/atom+xml; type=entry
<atom:entry xmlns:vaext=
"http://www.vizrt.com/atom-ext"
xmlns:vizid=
"http://www.vizrt.com/opensearch/vizid"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:inthub=
"http://www.vizrt.com/integrationshub"
xmlns=
"http://www.w3.org/2007/app"
xmlns:atom=
"http://www.w3.org/2005/Atom"
>
<inthub:name>1051111_1_VM_16_01_1</inthub:name>
<atom:id>1051111_1_VM_16_01_1</atom:id>
<atom:link rel=
"self"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous/primaryevents/1051111_1_VM_16_01_1"
/>
<atom:link rel=
"edit"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous/primaryevents/1051111_1_VM_16_01_1"
/>
<atom:link rel=
"secondaryevents"
type=
"application/atom+xml; type=feed"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous/primaryevents/1051111_1_VM_16_01_1/secondaryevents"
/>
<atom:meta_data>
<atom:attribute name=
"continue_count"
>
0
</atom:attribute>
<atom:attribute name=
"created"
>
6
/
11
/
2018
17
:
33
:
51
</atom:attribute>
<atom:attribute name=
"date"
>
2010
-
09
-
23
</atom:attribute>
<atom:attribute name=
"fixed_duration"
>yes</atom:attribute>
<atom:attribute name=
"seqment"
>
1
</atom:attribute>
<atom:attribute name=
"time"
>
08
:
50
:
15
:
24
</atom:attribute>
</atom:meta_data>
<inthub:description>In-channel trailer - Updated Title</inthub:description>
<inthub:begin_at>
2018
-
11
-06T07:
13
:
40
.000Z</inthub:begin_at>
<inthub:duration>
00
:
00
:
35
:
00
</inthub:duration>
<inthub:ignore>False</inthub:ignore>
<inthub:event_id>1051111_1_VM_16_01_1</inthub:event_id>
<inthub:trigger_id>primary1001</inthub:trigger_id>
<inthub:house_id />
<inthub:instance>composite_test</inthub:instance>
<inthub:adjust_begin_at_after_resume>yes</inthub:adjust_begin_at_after_resume>
<inthub:infoIntegrationsHub>[U:
23
:
41
:
36
]</inthub:infoIntegrationsHub>
</atom:entry>
Note
If doing a PUT against a URI that doesn't represent an existing Primary Event, the response is 'HTTP/1.1 404 PrimaryEvent 'primary_event_id' not found for playlist 'playlist_name' in channel 'channel_name'' and no element is updated.