<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2176/25/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Playback+REST+API">Asterisk 12 Playback REST API</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~dlee">David M. Lee</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk12PlaybackRESTAPI-Playback"></a>Playback</h1>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Method </th>
<th class='confluenceTh'> Path </th>
<th class='confluenceTh'> Return Model </th>
<th class='confluenceTh'> Summary </th>
</tr>
<tr>
<td class='confluenceTd'> GET </td>
<td class='confluenceTd'> <a href="#Asterisk12PlaybackRESTAPI-getPlayback">/playback/{playbackId}</a> </td>
<td class='confluenceTd'> Playback </td>
<td class='confluenceTd'> Get a playback's details </td>
</tr>
<tr>
<td class='confluenceTd'> DELETE </td>
<td class='confluenceTd'> <a href="#Asterisk12PlaybackRESTAPI-stopPlayback">/playback/{playbackId}</a> </td>
<td class='confluenceTd'> Playback </td>
<td class='confluenceTd'> Stop a playback </td>
</tr>
<tr>
<td class='confluenceTd'> POST </td>
<td class='confluenceTd'> <a href="#Asterisk12PlaybackRESTAPI-controlPlayback">/playback/{playbackId}/control</a> </td>
<td class='confluenceTd'> Playback </td>
<td class='confluenceTd'> Get a playback's details </td>
</tr>
</tbody></table>
</div>
<p><a name="Asterisk12PlaybackRESTAPI-getPlayback"></a></p>
<h2><a name="Asterisk12PlaybackRESTAPI-GET%2Fplayback%2F%5C"></a>GET /playback/{playbackId}</h2>
<p>Get a playback's details</p>
<h3><a name="Asterisk12PlaybackRESTAPI-Pathparameters"></a>Path parameters</h3>
<ul>
        <li>playbackId: string- Playback's id</li>
</ul>
<p><a name="Asterisk12PlaybackRESTAPI-stopPlayback"></a></p>
<h2><a name="Asterisk12PlaybackRESTAPI-DELETE%2Fplayback%2F%5C"></a>DELETE /playback/{playbackId}</h2>
<p>Stop a playback</p>
<h3><a name="Asterisk12PlaybackRESTAPI-Pathparameters"></a>Path parameters</h3>
<ul>
        <li>playbackId: string- Playback's id</li>
</ul>
<p><a name="Asterisk12PlaybackRESTAPI-controlPlayback"></a></p>
<h2><a name="Asterisk12PlaybackRESTAPI-POST%2Fplayback%2F%5C%2Fcontrol"></a>POST /playback/{playbackId}/control</h2>
<p>Get a playback's details</p>
<h3><a name="Asterisk12PlaybackRESTAPI-Pathparameters"></a>Path parameters</h3>
<ul>
        <li>playbackId: string- Playback's id</li>
</ul>
<h3><a name="Asterisk12PlaybackRESTAPI-Queryparameters"></a>Query parameters</h3>
<ul>
        <li>operation: string- Operation to perform on the playback.</li>
</ul>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Playback+REST+API">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Playback+REST+API?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>