POST api/DairyPlant/AddUpdateDairyPlant

Request Information

URI Parameters

None.

Body Parameters

DairyPlant
NameDescriptionTypeAdditional information
DairyPlantName

string

Required

String length: inclusive between 0 and 30

DairyPlantCode

string

Required

String length: inclusive between 0 and 10

DairyPlantID

integer

None.

FirstName

string

String length: inclusive between 0 and 30

LastName

string

String length: inclusive between 0 and 30

FactoryLicenceNo

string

String length: inclusive between 0 and 50

FoodLicenceNo

string

Required

String length: inclusive between 0 and 50

Address

string

String length: inclusive between 0 and 100

MobileNo

string

Matching regular expression pattern: ^([0-9]{10})$

PhoneNo

string

Required

Data type: PhoneNumber

Matching regular expression pattern: ^([0-9]{10})$

EmailID

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9_\.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

Isdeleted

integer

None.

MID

string

None.

TID

string

None.

APIKeyID

string

None.

SecretKey

string

None.

DairyPlantList

Collection of DairyPlant

None.

DispatchAddress

string

None.

DispatchLocation

string

None.

DispatchPincode

string

None.

DispatchState

string

None.

DispatchStateCode

string

None.

Location

string

Required

Pin

integer

Required

Matching regular expression pattern: ^([0-9]{6})$

Address2

string

String length: inclusive between 0 and 100

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>