POST User/savemobilesettings

Save the mobile settings for the user. Settings are sent as a Dictionary of string [key] and string [value].

Request Information

URI Parameters

None.

Body Parameters

SaveMobileSettingsRequest
NameDescriptionTypeAdditional information
token

API access token

globally unique identifier

Required

MobileSettings

Dictionary of mobile settings

Dictionary of string [key] and string [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "MobileSettings": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "token": "db2c224b-8290-44bc-a3c9-d68d8ffcf037"
}

application/xml, text/xml

Sample:
<SaveMobileSettingsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.User">
  <token xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models">db2c224b-8290-44bc-a3c9-d68d8ffcf037</token>
  <MobileSettings xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </MobileSettings>
</SaveMobileSettingsRequest>

Response Information

Resource Description

APIResult
NameDescriptionTypeAdditional information
code

API result code

integer

None.

error

API error message

string

None.

APIVersion

API Version

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "APIVersion": 1,
  "code": 200,
  "error": "sample string 2"
}

application/xml, text/xml

Sample:
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">
  <APIVersion>1</APIVersion>
  <error>sample string 2</error>
</APIResult>