Streamkey_del
This call allows you to delete stream keys from the current configuration.
You can remove a stream key by calling the streamkey_del
call and pass it either a single stream key as string, a list of stream keys as array, or an object containing stream keys.
To delete a single stream key, simply pass it as a string:
{
"streamkey_del": "UhFQ4DSYtSKOtX8NmUx1t1LFeJLllEBM",
}
You can also pass multiple stream keys at once in an array:
{
"streamkey_del": [
"streamkey",
"UhFQ4DSYtSKOtX8NmUx1t1LFeJLllEBM",
"w7mhwcgHid5oCtdMRybPjrpl1JudDVsY"
]
}
Or as an object:
{
"streamkey_del": {
"streamkey": "stream_1",
"UhFQ4DSYtSKOtX8NmUx1t1LFeJLllEBM": "stream_2",
"w7mhwcgHid5oCtdMRybPjrpl1JudDVsY": "stream_3"
}
}
Note that the value of the object is checked in this case: the stream key is only deleted if it matched the stream name.
The response will always be an array of the stream keys deleted by this call:
{
"streamkey_del": {
"deleted": [
"UhFQ4DSYtSKOtX8NmUx1t1LFeJLllEBM",
"streamkey",
"w7mhwcgHid5oCtdMRybPjrpl1JudDVsY"
]
}
}
A stream key is only listed in the deleted list if it actually existed in the configuration before the call was made (e.g. it is only in the deleted list if the configuration changed).