PATCH api/v1/Stores

Patch Store by id, only fields in the request are updated

Request Information

URI Parameters

None.

Body Parameters

PatchStoreDto
NameDescriptionTypeAdditional information
Id

Id of Store

integer

Required

Number

Unique number of the store

string

String length: inclusive between 0 and 25

Name

Meaningful name of the store

string

String length: inclusive between 0 and 100

Phone

Phone of the store

string

String length: inclusive between 0 and 20

Address

Address of the store

string

String length: inclusive between 0 and 100

ZipCode

Zip code of the store

string

String length: inclusive between 0 and 10

City

City of the store

string

String length: inclusive between 0 and 50

Email

Email of a store

string

String length: inclusive between 0 and 250

JsonString

Json string for additional data

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Number": "sample string 2",
  "Name": "sample string 3",
  "Phone": "sample string 4",
  "Address": "sample string 5",
  "ZipCode": "sample string 6",
  "City": "sample string 7",
  "Email": "sample string 8",
  "JsonString": "sample string 9"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReadStoreDto
NameDescriptionTypeAdditional information
Id

Id of Store

integer

Required

Number

Unique number of the store

string

Required

String length: inclusive between 0 and 25

LastModified

Date-time of when store was last modified

date

None.

Name

Meaningful name of the store

string

String length: inclusive between 0 and 100

Phone

Phone of the store

string

String length: inclusive between 0 and 20

Address

Address of the store

string

String length: inclusive between 0 and 100

ZipCode

Zip code of the store

string

String length: inclusive between 0 and 10

City

City of the store

string

String length: inclusive between 0 and 50

Email

Email of a store

string

String length: inclusive between 0 and 250

JsonString

Json string for additional data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Number": "sample string 2",
  "LastModified": "2024-04-26T22:06:17.3086963+00:00",
  "Name": "sample string 4",
  "Phone": "sample string 5",
  "Address": "sample string 6",
  "ZipCode": "sample string 7",
  "City": "sample string 8",
  "Email": "sample string 9",
  "JsonString": "sample string 10"
}