All Verbs | /session/edit/{CustomName} |
---|
"use strict";
export class AuthUserSession {
/** @param {{referrerUrl?:string,id?:string,userAuthId?:string,userAuthName?:string,userName?:string,twitterUserId?:string,twitterScreenName?:string,facebookUserId?:string,facebookUserName?:string,firstName?:string,lastName?:string,displayName?:string,company?:string,email?:string,primaryEmail?:string,phoneNumber?:string,birthDate?:string,birthDateRaw?:string,address?:string,address2?:string,city?:string,state?:string,country?:string,culture?:string,fullName?:string,gender?:string,language?:string,mailAddress?:string,nickname?:string,postalCode?:string,timeZone?:string,requestTokenSecret?:string,createdAt?:string,lastModified?:string,roles?:string[],permissions?:string[],isAuthenticated?:boolean,fromToken?:boolean,profileUrl?:string,sequence?:string,tag?:number,authProvider?:string,providerOAuthAccess?:IAuthTokens[],meta?:{ [index:string]: string; },audiences?:string[],scopes?:string[],dns?:string,rsa?:string,sid?:string,hash?:string,homePhone?:string,mobilePhone?:string,webpage?:string,emailConfirmed?:boolean,phoneNumberConfirmed?:boolean,twoFactorEnabled?:boolean,securityStamp?:string,type?:string,recoveryToken?:string,refId?:number,refIdStr?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
referrerUrl;
/** @type {string} */
id;
/** @type {string} */
userAuthId;
/** @type {string} */
userAuthName;
/** @type {string} */
userName;
/** @type {string} */
twitterUserId;
/** @type {string} */
twitterScreenName;
/** @type {string} */
facebookUserId;
/** @type {string} */
facebookUserName;
/** @type {string} */
firstName;
/** @type {string} */
lastName;
/** @type {string} */
displayName;
/** @type {string} */
company;
/** @type {string} */
email;
/** @type {string} */
primaryEmail;
/** @type {string} */
phoneNumber;
/** @type {?string} */
birthDate;
/** @type {string} */
birthDateRaw;
/** @type {string} */
address;
/** @type {string} */
address2;
/** @type {string} */
city;
/** @type {string} */
state;
/** @type {string} */
country;
/** @type {string} */
culture;
/** @type {string} */
fullName;
/** @type {string} */
gender;
/** @type {string} */
language;
/** @type {string} */
mailAddress;
/** @type {string} */
nickname;
/** @type {string} */
postalCode;
/** @type {string} */
timeZone;
/** @type {string} */
requestTokenSecret;
/** @type {string} */
createdAt;
/** @type {string} */
lastModified;
/** @type {string[]} */
roles;
/** @type {string[]} */
permissions;
/** @type {boolean} */
isAuthenticated;
/** @type {boolean} */
fromToken;
/** @type {string} */
profileUrl;
/** @type {string} */
sequence;
/** @type {number} */
tag;
/** @type {string} */
authProvider;
/** @type {IAuthTokens[]} */
providerOAuthAccess;
/** @type {{ [index:string]: string; }} */
meta;
/** @type {string[]} */
audiences;
/** @type {string[]} */
scopes;
/** @type {string} */
dns;
/** @type {string} */
rsa;
/** @type {string} */
sid;
/** @type {string} */
hash;
/** @type {string} */
homePhone;
/** @type {string} */
mobilePhone;
/** @type {string} */
webpage;
/** @type {?boolean} */
emailConfirmed;
/** @type {?boolean} */
phoneNumberConfirmed;
/** @type {?boolean} */
twoFactorEnabled;
/** @type {string} */
securityStamp;
/** @type {string} */
type;
/** @type {string} */
recoveryToken;
/** @type {?number} */
refId;
/** @type {string} */
refIdStr;
}
export class CustomUserSession extends AuthUserSession {
/** @param {{customName?:string,customInfo?:string,referrerUrl?:string,id?:string,userAuthId?:string,userAuthName?:string,userName?:string,twitterUserId?:string,twitterScreenName?:string,facebookUserId?:string,facebookUserName?:string,firstName?:string,lastName?:string,displayName?:string,company?:string,email?:string,primaryEmail?:string,phoneNumber?:string,birthDate?:string,birthDateRaw?:string,address?:string,address2?:string,city?:string,state?:string,country?:string,culture?:string,fullName?:string,gender?:string,language?:string,mailAddress?:string,nickname?:string,postalCode?:string,timeZone?:string,requestTokenSecret?:string,createdAt?:string,lastModified?:string,roles?:string[],permissions?:string[],isAuthenticated?:boolean,fromToken?:boolean,profileUrl?:string,sequence?:string,tag?:number,authProvider?:string,providerOAuthAccess?:IAuthTokens[],meta?:{ [index:string]: string; },audiences?:string[],scopes?:string[],dns?:string,rsa?:string,sid?:string,hash?:string,homePhone?:string,mobilePhone?:string,webpage?:string,emailConfirmed?:boolean,phoneNumberConfirmed?:boolean,twoFactorEnabled?:boolean,securityStamp?:string,type?:string,recoveryToken?:string,refId?:number,refIdStr?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
customName;
/** @type {string} */
customInfo;
}
export class UnAuthInfo {
/** @param {{customInfo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
customInfo;
}
export class GetSessionResponse {
/** @param {{result?:CustomUserSession,unAuthInfo?:UnAuthInfo,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {CustomUserSession} */
result;
/** @type {UnAuthInfo} */
unAuthInfo;
/** @type {ResponseStatus} */
responseStatus;
}
export class UpdateSession {
/** @param {{customName?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
customName;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /session/edit/{CustomName} HTTP/1.1
Host: test.servicestack.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"customName":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"result":{"customName":"String","customInfo":"String","referrerUrl":"String","id":"String","userAuthId":"String","userAuthName":"String","userName":"String","twitterUserId":"String","twitterScreenName":"String","facebookUserId":"String","facebookUserName":"String","firstName":"String","lastName":"String","displayName":"String","company":"String","email":"String","primaryEmail":"String","phoneNumber":"String","birthDate":"\/Date(-62135596800000-0000)\/","birthDateRaw":"String","address":"String","address2":"String","city":"String","state":"String","country":"String","culture":"String","fullName":"String","gender":"String","language":"String","mailAddress":"String","nickname":"String","postalCode":"String","timeZone":"String","requestTokenSecret":"String","createdAt":"\/Date(-62135596800000-0000)\/","lastModified":"\/Date(-62135596800000-0000)\/","roles":["String"],"permissions":["String"],"isAuthenticated":false,"fromToken":false,"profileUrl":"String","sequence":"String","tag":0,"authProvider":"String","providerOAuthAccess":[{}],"meta":{"String":"String"},"audiences":["String"],"scopes":["String"],"dns":"String","rsa":"String","sid":"String","hash":"String","homePhone":"String","mobilePhone":"String","webpage":"String","emailConfirmed":false,"phoneNumberConfirmed":false,"twoFactorEnabled":false,"securityStamp":"String","type":"String","recoveryToken":"String","refId":0,"refIdStr":"String"},"unAuthInfo":{"customInfo":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}