POST api/admin/EstablishmentImageType/AddOrEditEstablishmentImagesTypes

Request Information

URI Parameters

None.

Body Parameters

EstablishmentImagePostDTO
NameDescriptionTypeAdditional information
ImageTypeID

integer

None.

ImageLocationType

string

Required

Max length: 100

AllowedFileType

string

Required

Max length: 50

MaxFileSizeMB

integer

Required

IsActive

boolean

Required

UserID

string

Required

ActionTakenBy

string

Required

IPAddress

string

Required

Request Formats

application/json, text/json

Sample:
{
  "ImageTypeID": 1,
  "ImageLocationType": "sample string 1",
  "AllowedFileType": "sample string 2",
  "MaxFileSizeMB": 3,
  "IsActive": true,
  "UserID": "sample string 5",
  "ActionTakenBy": "sample string 6",
  "IPAddress": "sample string 7"
}

application/xml, text/xml

Sample:
<EstablishmentImagePostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tourism.Entities.CustomMasterModels">
  <ActionTakenBy>sample string 6</ActionTakenBy>
  <AllowedFileType>sample string 2</AllowedFileType>
  <IPAddress>sample string 7</IPAddress>
  <ImageLocationType>sample string 1</ImageLocationType>
  <ImageTypeID>1</ImageTypeID>
  <IsActive>true</IsActive>
  <MaxFileSizeMB>3</MaxFileSizeMB>
  <UserID>sample string 5</UserID>
</EstablishmentImagePostDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponseOfString
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tourism.Entities.Models">
  <Data>sample string 3</Data>
  <Message>sample string 2</Message>
  <Success>true</Success>
</ApiResponseOfstring>