PATCH api/MyAccount/sessions/current

Module : My Account; BE JIRA: ADINA-8727; Changes Current My Account and Ship To address

Request Information

URI Parameters

None.

Body Parameters

ChangeMyAccountCurrentRequest
NameDescriptionTypeAdditional information
billTo

BillToRequest

None.

shipTo

ShipToRequest

None.

properties

PropertiesRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "billTo": {
    "Id": "sample string 1"
  },
  "shipTo": {
    "Id": "sample string 1"
  },
  "properties": {
    "CustomBillToAddress": "sample string 1",
    "CustomBillToId": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<ChangeMyAccountCurrentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities.Cart">
  <billTo>
    <Id>sample string 1</Id>
  </billTo>
  <properties>
    <CustomBillToAddress>sample string 1</CustomBillToAddress>
    <CustomBillToId>sample string 2</CustomBillToId>
  </properties>
  <shipTo>
    <Id>sample string 1</Id>
  </shipTo>
</ChangeMyAccountCurrentRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChangeMyAccountCurrentRequest'.

Response Information

Resource Description

ChangeCurrentMyAccountResponse
NameDescriptionTypeAdditional information
uri

string

None.

isAuthenticated

boolean

None.

hasRfqUpdates

boolean

None.

userName

string

None.

userLabel

string

None.

userRoles

string

None.

email

string

None.

resetPassword

boolean

None.

displayChangeCustomerLink

boolean

None.

redirectToChangeCustomerPageOnSignIn

boolean

None.

isRestrictedProductRemovedFromCart

string

None.

persona

string

None.

dashboardIsHomepage

boolean

None.

isSalesPerson

boolean

None.

deviceType

string

None.

Message

string

None.

WebApiIsSuccess

boolean

None.

WebApiResponseMessage

string

None.

WebApiErrorCode

string

None.

error_description

string

None.

CookieData

Collection of AppCookie

None.

Response Formats

application/json, text/json

Sample:
{
  "uri": "sample string 1",
  "isAuthenticated": true,
  "hasRfqUpdates": true,
  "userName": "sample string 4",
  "userLabel": "sample string 5",
  "userRoles": "sample string 6",
  "email": "sample string 7",
  "resetPassword": true,
  "displayChangeCustomerLink": true,
  "redirectToChangeCustomerPageOnSignIn": true,
  "isRestrictedProductRemovedFromCart": "sample string 11",
  "persona": "sample string 12",
  "dashboardIsHomepage": true,
  "isSalesPerson": true,
  "deviceType": "sample string 15",
  "Message": "sample string 16",
  "WebApiIsSuccess": true,
  "WebApiResponseMessage": "sample string 18",
  "WebApiErrorCode": "sample string 19",
  "error_description": "sample string 20",
  "CookieData": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "NameValue": "sample string 3",
      "ExpiryDateTime": "sample string 4"
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "NameValue": "sample string 3",
      "ExpiryDateTime": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<ChangeCurrentMyAccountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities.Cart">
  <CookieData xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">
    <AppCookie>
      <ExpiryDateTime>sample string 4</ExpiryDateTime>
      <Name>sample string 1</Name>
      <NameValue>sample string 3</NameValue>
      <Value>sample string 2</Value>
    </AppCookie>
    <AppCookie>
      <ExpiryDateTime>sample string 4</ExpiryDateTime>
      <Name>sample string 1</Name>
      <NameValue>sample string 3</NameValue>
      <Value>sample string 2</Value>
    </AppCookie>
  </CookieData>
  <Message xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 16</Message>
  <WebApiErrorCode xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 19</WebApiErrorCode>
  <WebApiIsSuccess xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">true</WebApiIsSuccess>
  <WebApiResponseMessage xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 18</WebApiResponseMessage>
  <error_description xmlns="http://schemas.datacontract.org/2004/07/Adi.BusinessEntities">sample string 20</error_description>
  <dashboardIsHomepage>true</dashboardIsHomepage>
  <deviceType>sample string 15</deviceType>
  <displayChangeCustomerLink>true</displayChangeCustomerLink>
  <email>sample string 7</email>
  <hasRfqUpdates>true</hasRfqUpdates>
  <isAuthenticated>true</isAuthenticated>
  <isRestrictedProductRemovedFromCart>sample string 11</isRestrictedProductRemovedFromCart>
  <isSalesPerson>true</isSalesPerson>
  <persona>sample string 12</persona>
  <redirectToChangeCustomerPageOnSignIn>true</redirectToChangeCustomerPageOnSignIn>
  <resetPassword>true</resetPassword>
  <uri>sample string 1</uri>
  <userLabel>sample string 5</userLabel>
  <userName>sample string 4</userName>
  <userRoles>sample string 6</userRoles>
</ChangeCurrentMyAccountResponse>