PUT api/ms/store/update/{storeId}

Update

Request Information

URI Parameters

NameDescriptionTypeAdditional information
storeId

integer

Required

Body Parameters

m_store_update
NameDescriptionTypeAdditional information
Name

string

Required

String length: inclusive between 0 and 50

Detail

string

String length: inclusive between 0 and 2000

ContactInfo

string

String length: inclusive between 0 and 2000

Logo

string

None.

URL

string

Required

String length: inclusive between 0 and 60

AboutInfo

string

None.

AddressLine

string

String length: inclusive between 0 and 100

AddressCountry

string

String length: inclusive between 0 and 100

AddressProvince

string

String length: inclusive between 0 and 100

AddressDistrict

string

String length: inclusive between 0 and 100

AddressSubDistrict

string

String length: inclusive between 0 and 50

AddressPostalCode

string

String length: inclusive between 0 and 10

ContactCountryCode

string

String length: inclusive between 0 and 10

ContactPhoneNumber

string

String length: inclusive between 0 and 10

ContactFullPhoneNumber

string

String length: inclusive between 0 and 20

ContactEmail

string

String length: inclusive between 0 and 100

ContactWebsite

string

String length: inclusive between 0 and 255

StoreImages

Collection of m_store_image

None.

categories

Collection of m_store_update_category_request

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Detail": "sample string 2",
  "ContactInfo": "sample string 3",
  "Logo": "sample string 4",
  "URL": "sample string 5",
  "AboutInfo": "sample string 6",
  "AddressLine": "sample string 7",
  "AddressCountry": "sample string 8",
  "AddressProvince": "sample string 9",
  "AddressDistrict": "sample string 10",
  "AddressSubDistrict": "sample string 11",
  "AddressPostalCode": "sample string 12",
  "ContactCountryCode": "sample string 13",
  "ContactPhoneNumber": "sample string 14",
  "ContactFullPhoneNumber": "sample string 15",
  "ContactEmail": "sample string 16",
  "ContactWebsite": "sample string 17",
  "StoreImages": [
    {
      "Name": "sample string 1"
    },
    {
      "Name": "sample string 1"
    }
  ],
  "categories": [
    {
      "StoreCategoryId": "827eaee0-9fea-4ca4-b362-8ddbd2ab6d15"
    },
    {
      "StoreCategoryId": "827eaee0-9fea-4ca4-b362-8ddbd2ab6d15"
    }
  ]
}

application/xml, text/xml

Sample:
<m_store_update xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Modules.Models.Mainsystem">
  <AboutInfo>sample string 6</AboutInfo>
  <AddressCountry>sample string 8</AddressCountry>
  <AddressDistrict>sample string 10</AddressDistrict>
  <AddressLine>sample string 7</AddressLine>
  <AddressPostalCode>sample string 12</AddressPostalCode>
  <AddressProvince>sample string 9</AddressProvince>
  <AddressSubDistrict>sample string 11</AddressSubDistrict>
  <ContactCountryCode>sample string 13</ContactCountryCode>
  <ContactEmail>sample string 16</ContactEmail>
  <ContactFullPhoneNumber>sample string 15</ContactFullPhoneNumber>
  <ContactInfo>sample string 3</ContactInfo>
  <ContactPhoneNumber>sample string 14</ContactPhoneNumber>
  <ContactWebsite>sample string 17</ContactWebsite>
  <Detail>sample string 2</Detail>
  <Logo>sample string 4</Logo>
  <Name>sample string 1</Name>
  <StoreImages>
    <m_store_image>
      <Name>sample string 1</Name>
    </m_store_image>
    <m_store_image>
      <Name>sample string 1</Name>
    </m_store_image>
  </StoreImages>
  <URL>sample string 5</URL>
  <categories>
    <m_store_update_category_request>
      <StoreCategoryId>827eaee0-9fea-4ca4-b362-8ddbd2ab6d15</StoreCategoryId>
    </m_store_update_category_request>
    <m_store_update_category_request>
      <StoreCategoryId>827eaee0-9fea-4ca4-b362-8ddbd2ab6d15</StoreCategoryId>
    </m_store_update_category_request>
  </categories>
</m_store_update>

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 'm_store_update'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.