POST api/Seller/UpdateSellerProfile

Request Information

URI Parameters

None.

Body Parameters

nU_Seller
NameDescriptionTypeAdditional information
BusinessName

string

Required

String length: inclusive between 2 and 45

BusinessAddressID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

PrimaryPhone

string

Required

SecondaryPhone

string

Required

BusinessLogoID

integer

Matching regular expression pattern: ^[0-9]{1,11}$

SellerImageID

integer

Matching regular expression pattern: ^[0-9]{1,11}$

Request Formats

application/json, text/json

Sample:
{
  "businessName": "sample string 1",
  "businessAddressID": 2,
  "primaryPhone": "sample string 3",
  "secondaryPhone": "sample string 4",
  "businessLogoID": 1,
  "sellerImageID": 1
}

application/xml, text/xml

Sample:
<nU_Seller xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <BusinessLogoID>1</BusinessLogoID>
  <SellerImageID>1</SellerImageID>
  <BusinessAddressID>2</BusinessAddressID>
  <BusinessName>sample string 1</BusinessName>
  <PrimaryPhone>sample string 3</PrimaryPhone>
  <SecondaryPhone>sample string 4</SecondaryPhone>
</nU_Seller>

multipart/form-data

Sample:
<nU_Seller xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><BusinessLogoID>1</BusinessLogoID><SellerImageID>1</SellerImageID><BusinessAddressID>2</BusinessAddressID><BusinessName>sample string 1</BusinessName><PrimaryPhone>sample string 3</PrimaryPhone><SecondaryPhone>sample string 4</SecondaryPhone></nU_Seller>

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

Response Information

Resource Description

DBStatus
NameDescriptionTypeAdditional information
Type

DBOperation

None.

Message

Collection of DBMessageType

None.

InnerException

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "type": "ERROR",
  "message": [
    "SUCCESSFULLY_DATA_INSERTED",
    "SUCCESSFULLY_DATA_INSERTED"
  ],
  "innerException": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InnerException>
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure">
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
  </Message>
  <Type>ERROR</Type>
</DBStatus>

multipart/form-data

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></InnerException><Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure"><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType></Message><Type>ERROR</Type></DBStatus>