Upload emergency alarm sound
Upload a WAV audio file for the emergency alarm.
If the alarm with the specified ID does not exist, it will be created automatically.
A maximum of 5 emergency alarms can be configured.
Requirements:
- The multipart/form-data request must contain exactly one part named
file. - Additional multipart parts are not allowed.
- WAV format only.
- Maximum file size is 1 MB.
Path Parameters
- emergency-id int64 required
Possible values:
>= 1Emergency alarm identifier.
- multipart/form-data
Request Body
- file binary required
WAV audio file. Maximum size is 1 MB.
Responses
- 200
- 400
- 401
OK
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error information
{
"error": "Wrong JSON body"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error information
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...