Create a new remote relay.

POST
https://demo.azuracast.com/api/station/{station_id}/remotes

Body

application/json
display_namestring
Example
128kbps MP3
is_visible_on_public_pagesboolean
Example
true
typeRemoteAdaptersshoutcast1shoutcast2icecastazurarelay
enable_autodjboolean
Example
false
autodj_formatStreamFormats | null
Show child attributes
One of
StreamFormatsmp3oggaacopusflac
Example
mp3
autodj_bitrateinteger | null
Example
128
custom_listen_urlstring | null
Example
https://custom-listen-url.example.com/stream.mp3
urlstring
Example
https://custom-url.example.com
mountstring | null
Example
/stream.mp3
admin_passwordstring | null
Example
password
source_portinteger | null
Example
8000
source_mountstring | null
Example
/
source_usernamestring | null
Example
source
source_passwordstring | null
Example
password
is_publicboolean
Example
false
listeners_uniqueinteger

The most recent number of unique listeners.

Example
10
listeners_totalinteger

The most recent number of total (non-unique) listeners.

Example
12

Parameters

station_idinteger | stringrequiredpath

Response

200OKHasAutoIncrementId & object & HasLinks

Success

Response fields application/json
idintegerrequiredread only
display_namestring
Example
128kbps MP3
is_visible_on_public_pagesboolean
Example
true
typeRemoteAdaptersshoutcast1shoutcast2icecastazurarelay
is_editablebooleanread only
Example
true
enable_autodjboolean
Example
false
autodj_formatStreamFormats | null
Show child attributes
One of
StreamFormatsmp3oggaacopusflac
Example
mp3
autodj_bitrateinteger | null
Example
128
custom_listen_urlstring | null
Example
https://custom-listen-url.example.com/stream.mp3
urlstring
Example
https://custom-url.example.com
mountstring | null
Example
/stream.mp3
admin_passwordstring | null
Example
password
source_portinteger | null
Example
8000
source_mountstring | null
Example
/
source_usernamestring | null
Example
source
source_passwordstring | null
Example
password
is_publicboolean
Example
false
listeners_uniqueinteger

The most recent number of unique listeners.

Example
10
listeners_totalinteger

The most recent number of total (non-unique) listeners.

Example
12
403ForbiddenApi_Error

Access denied.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
404Not FoundApi_Error

Record not found.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
500Internal Server ErrorApi_Error

A generic exception has occurred.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false

Authorization

ApiKeyapiKey in header