POST | /v1/User/RefreshToken | Refresh user token before timeout |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class RefreshUserTokenRequest : IPost
{
}
open class RefreshUserTokenResponse
{
open var Account:Account? = null
open var IsValid:Boolean? = null
}
open class Account
{
open var GasUserId:String? = null
open var UserId:Int? = null
open var UserRoleId:ArrayList<Int>? = null
open var UserRoleRedirectUrl:String? = null
open var UserToken:UUID? = null
open var RetailerGroupId:String? = null
open var Modified:Date? = null
open var Exists:Boolean? = null
open var DefaultVehicleType:String? = null
open var DefaultRetailerGssn:String? = null
}
Kotlin RefreshUserTokenRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/User/RefreshToken HTTP/1.1
Host: prod-api-auth-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Account: { GasUserId: String, UserId: 0, UserRoleId: [ 0 ], UserRoleRedirectUrl: String, UserToken: 00000000000000000000000000000000, RetailerGroupId: String, Modified: 0001-01-01, Exists: False, DefaultVehicleType: String, DefaultRetailerGssn: String }, IsValid: False }