The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/SaveAppSettings HTTP/1.1
Host: api.dev.bnn.us
Content-Type: text/jsv
Content-Length: length
{
Settings:
{
Id: String,
Username: String,
AppSettings:
{
LoggedIn: False,
AllowTrackLocation: False,
DisableDataSubmit: False,
DeviceToken: String,
DeviceFingerPrint: String,
SleepMode: False,
ScheduledSleep: False,
ScheduledSleepFrom: String,
ScheduledSleepTo: String,
ScheduledTimeZoneOffset: 0,
AutoMarkAsRead: False,
JobMute: False,
JobMediaMute: False,
JobSound: String,
JobFields: String,
WeatherMute: False,
WeatherSound: String,
WeatherFields: String,
MessageMute: False,
MessageSound: String,
KeywordAlertsMute: False,
KeywordAlertsSound: String,
KeywordAlerts:
[
{
Id: String,
State: String,
County: String,
City: String,
Box: String,
Address: String,
Incident: String,
Story: String,
Zip: String,
JobId: 0,
Reporters: String
}
],
JobProximity: 0,
ProximityMute: False,
ProximitySound: String,
Use24HourFormat: False,
FontScale: 0
},
Badges:
{
Incidents: 0,
Weather: 0,
Chats: 0,
Message: 0
},
Chats:
{
String:
{
Mute: False,
Badge: 0,
Sound: String,
ChatId: String,
Name: String,
Subject: String
}
}
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Data: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String
}
]
}
}