ServiceStack Home (Live)

<back to all web services

AccountSettings

Requires Authentication
The following routes are available for this service:
All Verbs/account/settings
GET POST/AccountSettings
namespace MyApp.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type AccountSettings() = 
        interface IPost
        member val DisplayName:String = null with get,set
        member val FirstName:String = null with get,set
        member val LastName:String = null with get,set
        member val Company:String = null with get,set
        member val PhoneNumber:String = null with get,set
        member val ShowCard:Boolean = new Boolean() with get,set
        member val Brand:String = null with get,set
        member val Last4:String = null with get,set
        member val CardNumber:String = null with get,set
        member val Cvc:String = null with get,set
        member val ExpMonth:Int32 = new Int32() with get,set
        member val ExpYear:Int32 = new Int32() with get,set

F# AccountSettings DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /account/settings HTTP/1.1 
Host: account.servicestack.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AccountSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Brand>String</Brand>
  <CardNumber>String</CardNumber>
  <Company>String</Company>
  <Cvc>String</Cvc>
  <DisplayName>String</DisplayName>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <FirstName>String</FirstName>
  <Last4>String</Last4>
  <LastName>String</LastName>
  <PhoneNumber>String</PhoneNumber>
  <ShowCard>false</ShowCard>
</AccountSettings>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AccountSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Brand>String</Brand>
  <CardNumber>String</CardNumber>
  <Company>String</Company>
  <Cvc>String</Cvc>
  <DisplayName>String</DisplayName>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <FirstName>String</FirstName>
  <Last4>String</Last4>
  <LastName>String</LastName>
  <PhoneNumber>String</PhoneNumber>
  <ShowCard>false</ShowCard>
</AccountSettings>