POST api/Entity/UpsertEntity
Request Information
URI Parameters
None.
Body Parameters
EntityModelName | Description | Type | Additional information |
---|---|---|---|
EntityKey | string |
None. |
|
NameEnglish | string |
None. |
|
NameArabic | string |
None. |
|
TaxIdNumber | string |
None. |
|
CRNumber | string |
None. |
|
EntityTypeId | integer |
None. |
|
PrefixTitleId | integer |
None. |
|
ParentEntityKey | string |
None. |
|
ImageModel | ImageUploadModel |
None. |
|
StatusId | integer |
None. |
|
AreaId | integer |
None. |
|
BookingTypeId | integer |
None. |
|
Logo | string |
None. |
|
PhoneNumber | string |
None. |
|
MessagesPhoneNumber | string |
None. |
|
CountryIsoCode | string |
None. |
|
HideServicesPrices | boolean |
None. |
|
EntityAddressModel | EntityAddressModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "EntityKey": "sample string 1", "NameEnglish": "sample string 2", "NameArabic": "sample string 3", "TaxIdNumber": "sample string 4", "CRNumber": "sample string 5", "EntityTypeId": 6, "PrefixTitleId": 1, "ParentEntityKey": "sample string 7", "ImageModel": { "ImageExtension": "sample string 1", "ImageBase64String": "sample string 2", "DescriptionEnglish": "sample string 3", "DescriptionArabic": "sample string 4", "FilePath": "sample string 5", "ThumbnailPath": "sample string 6" }, "StatusId": 1, "AreaId": 1, "BookingTypeId": 1, "Logo": "sample string 8", "PhoneNumber": "sample string 9", "MessagesPhoneNumber": "sample string 10", "CountryIsoCode": "sample string 11", "HideServicesPrices": true, "EntityAddressModel": { "EntityAddressKey": "sample string 1", "AddressEnglish": "sample string 2", "AddressArabic": "sample string 3", "AddressEn": "sample string 4", "AddressAr": "sample string 5", "ShortAddressEnglish": "sample string 6", "ShortAddressArabic": "sample string 7", "AreaId": 1, "AreaKey": "sample string 8", "CityKey": "sample string 9", "StreetNameArabic": "sample string 10", "StreetNameEnglish": "sample string 11", "BuildingNumberEnglish": "sample string 12", "BuildingNumberArabic": "sample string 13", "FloorNumberEnglish": "sample string 14", "FloorNumberArabic": "sample string 15", "Apartment": "sample string 16", "LabelEnglish": "sample string 17", "LabelArabic": "sample string 18", "Latitude": 1.0, "Longitude": 1.0 } }
application/xml, text/xml
Sample:
<EntityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccountManagement.Models"> <AddressId>1</AddressId> <AreaId>1</AreaId> <BookingTypeId>1</BookingTypeId> <CRNumber>sample string 5</CRNumber> <CountryIsoCode>sample string 11</CountryIsoCode> <EntityAddressModel> <AddressAr>sample string 5</AddressAr> <AddressArabic>sample string 3</AddressArabic> <AddressEn>sample string 4</AddressEn> <AddressEnglish>sample string 2</AddressEnglish> <Apartment>sample string 16</Apartment> <AreaId>1</AreaId> <AreaKey>sample string 8</AreaKey> <BuildingNumberArabic>sample string 13</BuildingNumberArabic> <BuildingNumberEnglish>sample string 12</BuildingNumberEnglish> <CityKey>sample string 9</CityKey> <EntityAddressKey>sample string 1</EntityAddressKey> <FloorNumberArabic>sample string 15</FloorNumberArabic> <FloorNumberEnglish>sample string 14</FloorNumberEnglish> <LabelArabic>sample string 18</LabelArabic> <LabelEnglish>sample string 17</LabelEnglish> <Latitude>1</Latitude> <Longitude>1</Longitude> <ShortAddressArabic>sample string 7</ShortAddressArabic> <ShortAddressEnglish>sample string 6</ShortAddressEnglish> <StreetNameArabic>sample string 10</StreetNameArabic> <StreetNameEnglish>sample string 11</StreetNameEnglish> </EntityAddressModel> <EntityKey>sample string 1</EntityKey> <EntityTypeId>6</EntityTypeId> <HideServicesPrices>true</HideServicesPrices> <ImageModel> <DescriptionArabic>sample string 4</DescriptionArabic> <DescriptionEnglish>sample string 3</DescriptionEnglish> <FilePath>sample string 5</FilePath> <ImageBase64String>sample string 2</ImageBase64String> <ImageExtension>sample string 1</ImageExtension> <ThumbnailPath>sample string 6</ThumbnailPath> </ImageModel> <Logo>sample string 8</Logo> <MessagesPhoneNumber>sample string 10</MessagesPhoneNumber> <NameArabic>sample string 3</NameArabic> <NameEnglish>sample string 2</NameEnglish> <ParentEntityKey>sample string 7</ParentEntityKey> <PhoneNumber>sample string 9</PhoneNumber> <PrefixTitleId>1</PrefixTitleId> <SpecialtyGroupId>1</SpecialtyGroupId> <StatusId>1</StatusId> <TaxIdNumber>sample string 4</TaxIdNumber> </EntityModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |