PUT Common/State/Save?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

StateViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

StoreId

integer

None.

CountryId

integer

Required

Name

string

Max length: 50

Abbreviation

string

Max length: 5

Published

boolean

None.

DisplayOrder

integer

None.

ModifiedBy

string

None.

ModifiedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "StoreId": 1,
  "CountryId": 2,
  "Name": "sample string 3",
  "Abbreviation": "sample string 4",
  "Published": true,
  "DisplayOrder": 6,
  "ModifiedBy": "sample string 7",
  "ModifiedDate": "2025-04-26T16:21:35.0560986+01:00"
}

application/xml, text/xml

Sample:
<StateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECommerce.Service.Common.ViewModel">
  <Abbreviation>sample string 4</Abbreviation>
  <CountryId>2</CountryId>
  <DisplayOrder>6</DisplayOrder>
  <Id>1</Id>
  <ModifiedBy>sample string 7</ModifiedBy>
  <ModifiedDate>2025-04-26T16:21:35.0560986+01:00</ModifiedDate>
  <Name>sample string 3</Name>
  <Published>true</Published>
  <StoreId>1</StoreId>
</StateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.